From 44f00bd7ed97634cc22526fa0125138ed9655ea0 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 12 Feb 2014 01:47:12 -0200 Subject: [PATCH] Add spec to check if container state detection is case insentive [GH-217] --- spec/unit/driver/cli_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/unit/driver/cli_spec.rb b/spec/unit/driver/cli_spec.rb index 5e8dd23..9e78353 100644 --- a/spec/unit/driver/cli_spec.rb +++ b/spec/unit/driver/cli_spec.rb @@ -141,6 +141,11 @@ describe Vagrant::LXC::Driver::CLI do it 'maps the output of lxc-info status out to a symbol' do subject.state.should == :stopped end + + it 'is not case sensitive' do + subject.stub(:run).and_return("StatE: STarTED\npid: 2") + subject.state.should == :started + end end describe 'attach' do