Commit 1eea9664 authored by Sergey Gernyak's avatar Sergey Gernyak

FIX: run expiring said in connection

parent eebaa393
...@@ -24,7 +24,7 @@ module BetfairApiNgRails ...@@ -24,7 +24,7 @@ module BetfairApiNgRails
include Api::ConnectionExt::Formatting include Api::ConnectionExt::Formatting
def expire_provider def expire_provider
BetfairApiNgRails::Api::SessionManager.expire_ssoid username BetfairApiNgRails::Api::SessionManager.expire_ssoid account
end end
protected protected
...@@ -33,8 +33,8 @@ describe BetfairApiNgRails::Api::Connection do ...@@ -33,8 +33,8 @@ describe BetfairApiNgRails::Api::Connection do
describe "#expire_provider" do describe "#expire_provider" do
it "resets account's ssoid" do it "resets account's ssoid" do
allow(connection).to receive(:username).and_return acc_name allow(connection).to receive(:account).and_return account
expect(BetfairApiNgRails::Api::SessionManager).to receive(:expire_ssoid).with(acc_name) expect(BetfairApiNgRails::Api::SessionManager).to receive(:expire_ssoid).with(account)
connection.expire_provider connection.expire_provider
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment