Skip to content

Commit 776a477

Browse files
committed
fix spec that tests attr_protected
1 parent c12f0d0 commit 776a477

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spec/models/teams/account_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,8 @@ def post_job_for(team)
101101
account[:stripe_customer_token] = 'invalid_customer_token'
102102
account[:admin_id] = some_random_user.id
103103
team.build_account(account)
104-
team.account.save_with_payment
105-
team.reload
106-
expect(team.account).to be_nil
107-
104+
expect(team.account.stripe_customer_token).to be_nil
105+
expect(team.account.admin_id).to be_nil
108106
end
109107
end
110108
end

0 commit comments

Comments
 (0)