Add spec to check if container state detection is case insentive [GH-217]
This commit is contained in:
parent
005140099c
commit
44f00bd7ed
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue