|
110 | 110 | } |
111 | 111 | EOF |
112 | 112 | stub_request(:get, "https://api.bufferapp.com/1/updates/4ecda476542f7ee521000006/interactions.json?access_token=some_token&count=3&event=favorite&page=2"). |
113 | | - with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.8.7'}). |
| 113 | + with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.9.1'}). |
114 | 114 | to_return(:status => 200, :body => response, :headers => {}) |
115 | 115 | client.interactions_by_update_id(id, page: 2, count: 3, event: "favorite") |
116 | 116 | end |
|
140 | 140 | order_hash = { order: [id_no, id_no, id_no] } |
141 | 141 | stub_request(:post, %r{https://api\.bufferapp\.com/1/profiles/4ecda256512f7ee521000001/updates/reorder\.json\?access_token=.*}). |
142 | 142 | with(:body => {"order"=>["4ecda256512f7ee521000001", "4ecda256512f7ee521000001", "4ecda256512f7ee521000001"]}, |
143 | | - :headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.8.7'}). |
| 143 | + :headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.9.1'}). |
144 | 144 | to_return(:status => 200, :body => reorder_updates_body_response, :headers => {}) |
145 | 145 | client.reorder_updates(id_no, order_hash) |
146 | 146 | end |
|
0 commit comments