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:
parent
bdf6192eb4
commit
12d03dd80b
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ describe Capybara do
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue