Skip to content

Commit

Permalink
Improve spec
Browse files Browse the repository at this point in the history
  • Loading branch information
summera committed Mar 28, 2020
1 parent ac786b8 commit d16ca59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/twitter/rest/request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
it 'uses custom HTTP::FormData::Urlencoded instance for form requests' do
stub_post('/1.1/statuses/update.json').with(body: {status: 'Update'}).to_return(body: fixture('status.json'), headers: {content_type: 'application/json; charset=utf-8'})
expect_any_instance_of(HTTP::Client).to receive(:post).with('https://api.twitter.com/1.1/statuses/update.json', form: instance_of(HTTP::FormData::Urlencoded)).and_call_original
expect(Twitter::REST::FormEncoder).to receive(:encode).with({status: 'Update'}).and_call_original
@client.update('Update')
end

Expand Down

0 comments on commit d16ca59

Please sign in to comment.