1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00

JSON -> MultiJson

This commit is contained in:
Jon Leighton 2012-03-11 11:03:08 +00:00
parent a0dce9a7ac
commit e251839ed9

View file

@ -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?')