spec/oauth2/grant/refresh_token_spec.rb in oauth2-client-1.0.0 vs spec/oauth2/grant/refresh_token_spec.rb in oauth2-client-1.1.0
- old
+ new
@@ -18,10 +18,13 @@
end
end
describe "#get_token" do
it "gets access token" do
- subject.should_receive(:make_request).with(:post, "/oauth2/token", {:params=>{:grant_type=>"refresh_token", :refresh_token=>"2YotnFZFEjr1zCsicMWpAA"}, :authenticate=>:headers})
+ subject.should_receive(:make_request).with(:post, "/oauth2/token", {
+ :params => {:grant_type=>"refresh_token", :refresh_token=>"2YotnFZFEjr1zCsicMWpAA"},
+ :authenticate => :headers
+ })
subject.get_token('2YotnFZFEjr1zCsicMWpAA')
end
end
end
\ No newline at end of file