spec/models/account_spec.rb in bookingsync-engine-3.0.1 vs spec/models/account_spec.rb in bookingsync-engine-3.0.2
- old
+ new
@@ -97,21 +97,9 @@
it "refreshes the token" do
expect(token).to receive(:refresh!)
account.token
end
-
- it "stores the refreshed token even with rollback" do
- Account.transaction do
- account.token
- raise ActiveRecord::Rollback
- end
-
- account.reload
- expect(account.oauth_access_token).to eq("refreshed_token")
- expect(account.oauth_refresh_token).to eq("refreshed_refresh_token")
- expect(account.oauth_expires_at).to eq(new_expires_at)
- end
end
end
describe "#clear_token!" do
it "clears token related fields on account" do