mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
JSON -> MultiJson
This commit is contained in:
parent
a0dce9a7ac
commit
e251839ed9
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module Capybara::Poltergeist
|
|||
it 'should log requests and responses to the client' do
|
||||
request = { 'name' => 'where is', 'args' => ["the love?"] }
|
||||
response = { 'response' => '<3' }
|
||||
server.stub(:send).with(JSON.generate(request)).and_return(JSON.generate(response))
|
||||
server.stub(:send).with(MultiJson.encode(request)).and_return(MultiJson.encode(response))
|
||||
|
||||
subject.command('where is', 'the love?')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue