1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

use double instead of mock to get rid of the deprecation warning

This commit is contained in:
Markus Graf 2013-09-27 13:39:05 +02:00
parent bdf6192eb4
commit 12d03dd80b

View file

@ -31,7 +31,7 @@ describe Capybara do
end end
it "should default to a proc that calls run_default_server" do 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.should_receive(:run_default_server).with(mock_app, 8000)
Capybara.server.call(mock_app, 8000) Capybara.server.call(mock_app, 8000)
end end