spec/oauth2/grant/device_spec.rb in oauth2-client-1.0.0 vs spec/oauth2/grant/device_spec.rb in oauth2-client-1.1.0

- old
+ new

@@ -19,17 +19,22 @@ end end describe "#get_code" do it "gets user code" do - subject.should_receive(:make_request).with(:post, "/oauth2/device/code", {:params=>{:client_id=>"s6BhdRkqt3"}}) + subject.should_receive(:make_request).with(:post, "/oauth2/device/code", { + :params => {:client_id=>"s6BhdRkqt3"} + }) subject.get_code end end describe "#get_token" do it "gets access token" do - subject.should_receive(:make_request).with(:post, "/oauth2/token", {:params=>{:code=>"G3Y6jU3a", :grant_type=>"http://oauth.net/grant_type/device/1.0"}, :authenticate=>:headers}) + subject.should_receive(:make_request).with(:post, "/oauth2/token", { + :params => {:code=>"G3Y6jU3a", :grant_type=>"http://oauth.net/grant_type/device/1.0"}, + :authenticate => :headers + }) subject.get_token('G3Y6jU3a') end end end \ No newline at end of file