spec/spork/runner_spec.rb in spork-0.4.4 vs spec/spork/runner_spec.rb in spork-0.5.1
- old
+ new
@@ -9,11 +9,11 @@
Spork::Runner.new(["rs"], @out, @err).find_server.should == Spork::Server::RSpec
end
it "shows an error message if no matching server was found" do
Spork::Runner.new(["argle_bargle"], @out, @err).run.should == false
- @out.string.should include(%("argle_bargle" didn't match a supported test framework))
+ @err.string.should include(%("argle_bargle" didn't match a supported test framework))
end
it "defaults to use rspec over cucumber" do
Spork::Server::RSpec.stub!(:available?).and_return(true)
Spork::Server::Cucumber.stub!(:available?).and_return(true)
@@ -42,10 +42,10 @@
it "runs the server if all is well" do
Spork::Server::RSpec.stub!(:available?).and_return(true)
Spork::Server::RSpec.should_receive(:preload).and_return(true)
Spork::Server::RSpec.should_receive(:run).and_return(true)
Spork::Runner.new(['rspec'], @out, @err).run
- @out.string.should include("Using RSpec")
+ @err.string.should include("Using RSpec")
end
it "outputs a list of supported servers, along with supported asterisk" do
Spork::Server.stub!(:supported_servers).and_return([Spork::Server::RSpec, Spork::Server::Cucumber])
Spork::Server::RSpec.stub!(:available?).and_return(true)