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