spec/auth_spec.rb in yandex-money-sdk-0.9.0 vs spec/auth_spec.rb in yandex-money-sdk-0.9.5

- old
+ new

@@ -17,15 +17,14 @@ it "should get token with usage of client_secret" do VCR.use_cassette "token with client secret" do api = YandexMoney::Api.new( client_id: "2CB2BBF0788E79A1537437CFD37B15A3E21DAAEE5CD0AE8981118C1CFC6F376A", redirect_uri: REDIRECT_URI, - scope: "account-info operation-history", - client_secret: "6FAFA896BD2C77E21E240081CDFF3B007451876AB9C186DE2AD2EDDCE29CE3E1BCC1A2789B53583F3398ACD8127A61851357C5D3F444D58F8B5F0AA4F78F088D" + scope: "account-info operation-history" ) api.code = "94D93C28E1B27B02A36D495B01BB410EB415EF0152FA30837DEAF307773EDB9734B46954292458D3E5B0E8ABD70C1AF1EE71D64648FB65E7DA8ADAC961970709C3BEBA1AF949F73BAEA2134D386D2ED31CA3F001A45EA05A614432A196A6BEA7B042A0ABDA6E62BA108F864FC400286F388A41454DD961A4A782BF32A80F3816" - api.obtain_token - expect(api.token).to start_with("41001565326286") + api.obtain_token("6FAFA896BD2C77E21E240081CDFF3B007451876AB9C186DE2AD2EDDCE29CE3E1BCC1A2789B53583F3398ACD8127A61851357C5D3F444D58F8B5F0AA4F78F088D") + expect(api.token).to start_with("410011285611534") end end # http://api.yandex.ru/money/doc/dg/reference/obtain-access-token.xml it "should get token from code" do