Add spec to check if container state detection is case insentive [GH-217]

This commit is contained in:
Fabio Rehm 2014-02-12 01:47:12 -02:00
parent 005140099c
commit 44f00bd7ed

View file

@ -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