Skip to content

Matchers #752

wants to merge 3 commits into from

2 participants

delwyn commented Sep 28, 2012

Allow the be_able_to matcher to handle multiple actions. This allows you to

object.should be_able_to([:read, :create, :update], :user)

It also reports partial failures where only some of the actions fail/pass

expected to be able to [:read, :create, :update] :user but was not able to [:update]


expected not to be able to [:read, :create, :update] :user but was able to [:read]
lunks commented Sep 23, 2013

Looks great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.