Skip to content

Commit

Permalink
Fix the failing spec from webmock/1.20.2
Browse files Browse the repository at this point in the history
WebMock fixed argument handling of 'to_return'. Update td-client-ruby's
spec to follow the change. The detail is here; bblimke/webmock#427
  • Loading branch information
Hiroshi Nakamura committed Dec 2, 2014
1 parent 224176e commit 085ce0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/td/client/result_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
describe 'create_result' do
it 'should create a new result' do
params = {'url' => result_url}
stub_api_request(:post, "/v3/result/create/#{e(result_name)}").with(:body => params).to_return(:body => {'result' => result_name})
stub_api_request(:post, "/v3/result/create/#{e(result_name)}").with(:body => params).to_return(:body => {'result' => result_name}.to_json)

api.create_result(result_name, result_url).should be true
end
Expand Down

0 comments on commit 085ce0c

Please sign in to comment.