spec/container_spec.rb in testlab-0.8.3 vs spec/container_spec.rb in testlab-0.8.4

- old
+ new

@@ -21,11 +21,11 @@ describe TestLab::Container do subject { @ui = ZTK::UI.new(:stdout => StringIO.new, :stderr => StringIO.new) - @testlab = TestLab.new(:labfile_path => LABFILE, :ui => @ui) + @testlab = TestLab.new(:repo_dir => REPO_DIR, :labfile_path => LABFILE_PATH, :ui => @ui) @testlab.boot @testlab.containers.first } describe "class" do @@ -205,11 +205,11 @@ end end context "with the shell provisioner" do it "should setup the container" do - subject = TestLab::Container.first('server-shell') + subject and (subject = TestLab::Container.first('server-shell')) subject.node.stub(:state) { :running } subject.lxc.stub(:exists?) { true } subject.lxc.stub(:state) { :stopped } subject.provisioners = Array.new @@ -231,10 +231,10 @@ end end context "with the shell provisioner" do it "should teardown the container" do - subject = TestLab::Container.first('server-shell') + subject and (subject = TestLab::Container.first('server-shell')) subject.node.stub(:state) { :running } subject.lxc.stub(:exists?) { true } subject.lxc.stub(:state) { :stopped } subject.provisioners = Array.new