spec/capybara_spec.rb in capybara-2.1.0 vs spec/capybara_spec.rb in capybara-2.2.0.rc1
- old
+ new
@@ -29,10 +29,10 @@
after do
Capybara.server {|app, port| Capybara.run_default_server(app, port)}
end
it "should default to a proc that calls run_default_server" do
- mock_app = mock('app')
+ mock_app = double('app')
Capybara.should_receive(:run_default_server).with(mock_app, 8000)
Capybara.server.call(mock_app, 8000)
end
it "should return a custom server proc" do