Merge branch 'patch-1' of https://github.com/mergulhao/shoulda-matchers
This commit is contained in:
commit
bf937c966f
|
@ -9,7 +9,7 @@ module Shoulda # :nodoc:
|
||||||
#
|
#
|
||||||
# In Rails 3.1 you can check role as well:
|
# In Rails 3.1 you can check role as well:
|
||||||
#
|
#
|
||||||
# it { should allow_mass_assigment_of(:first_name).as(:admin) }
|
# it { should allow_mass_assignment_of(:first_name).as(:admin) }
|
||||||
#
|
#
|
||||||
def allow_mass_assignment_of(value)
|
def allow_mass_assignment_of(value)
|
||||||
AllowMassAssignmentOfMatcher.new(value)
|
AllowMassAssignmentOfMatcher.new(value)
|
||||||
|
|
Loading…
Reference in New Issue