Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RSpec and CanCan Authorization for Intentional Economics
@e.amount = 1.0
@e.customer = @p2
@membership.roles = ['individual']
@membership.save
account = @p2.account(@g)
account.balance = 0.0
account.credit_limit = 0.5
account.save!
@ability.should_not be_able_to(:create,@e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.