Skip to content

Commit eabfaab

Browse files
committed
Remove traces of Buff gem
1 parent be50c8a commit eabfaab

8 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
}
111111
EOF
112112
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'}).
114114
to_return(:status => 200, :body => response, :headers => {})
115115
client.interactions_by_update_id(id, page: 2, count: 3, event: "favorite")
116116
end
@@ -140,7 +140,7 @@
140140
order_hash = { order: [id_no, id_no, id_no] }
141141
stub_request(:post, %r{https://api\.bufferapp\.com/1/profiles/4ecda256512f7ee521000001/updates/reorder\.json\?access_token=.*}).
142142
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'}).
144144
to_return(:status => 200, :body => reorder_updates_body_response, :headers => {})
145145
client.reorder_updates(id_no, order_hash)
146146
end

spec/lib/core_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
id = "4eb854340acb04e870000010"
3030
stub_request(:post, "#{ base_path }/profiles/#{id}/schedules/update.json?access_token=some_token").
3131
with(:body => {"schedules"=>"schedules[0][days][]=mon&schedules[0][days][]=tue&schedules[0][days][]=wed&schedules[0][times][]=12%3A00&schedules[0][times][]=17%3A00&schedules[0][times][]=18%3A00"},
32-
: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'}).
32+
: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'}).
3333
to_return(:status => 200, :body => response, :headers => {})
3434
client.set_schedules(id, :schedules => sample_schedules).success.
3535
should eq(true)
@@ -48,7 +48,7 @@
4848
describe "#handle_response_code" do
4949
context "fails gracefully with undocumented responses" do
5050
it "responds to 401 unauthorized response" do
51-
id = "4eb8565e0acb04bb82000004"
51+
id = "5520a65cf387f71753588135"
5252
url = "#{base_path}/updates/#{id}.json?access_token=some_token"
5353
stub_with_to_return(:get, url, "update_by_id_non_auth.txt")
5454
lambda { client.update_by_id(id) }.

0 commit comments

Comments
 (0)