spec/commands_spec.rb in cuukie-0.1.3 vs spec/commands_spec.rb in cuukie-0.1.4

- old
+ new

@@ -29,11 +29,11 @@ begin start_process "ruby bin/cuukie_server 4569 >/dev/null 2>&1" wait_for_server_on_port 4569 cmd = "cd spec/test_project && \ cucumber features/1_show_scenarios.feature:9 \ - --format cuukie > #{@out.path}" + --format cuukie > #{@out.path}" system(cmd).should be_true @out.read.should == '' ensure stop_server_on_port 4569 end @@ -43,23 +43,23 @@ start_process "ruby bin/cuukie_server 4570 >/dev/null 2>&1" begin wait_for_server_on_port 4570 cmd = "cd spec/test_project && \ cucumber features/1_show_scenarios.feature:9 \ - CUUKIE_SERVER=http://localhost:4570 \ - --format cuukie > #{@out.path}" + CUUKIE_SERVER=http://localhost:4570 \ + --format cuukie > #{@out.path}" system(cmd).should be_true @out.read.should == '' ensure stop_server_on_port 4570 end end it "fails gracefully if the server is down" do cmd = "cd spec/test_project && \ cucumber features/1_show_scenarios.feature:9 \ - CUUKIE_SERVER=http://some.server:4570 \ - --format cuukie > #{@out.path}" + CUUKIE_SERVER=http://some.server:4570 \ + --format cuukie > #{@out.path}" system(cmd).should be_true @out.read.should match 'I cannot find the cuukie_server on http://some.server:4570' end end