Fix documentation typo. Method is named have_readonly_attribute, but documentation refers to have_readonly_attributes.
This commit is contained in:
parent
3d9439030b
commit
69286613d0
|
@ -5,7 +5,7 @@ module Shoulda # :nodoc:
|
||||||
# Ensures that the attribute cannot be changed once the record has been
|
# Ensures that the attribute cannot be changed once the record has been
|
||||||
# created.
|
# created.
|
||||||
#
|
#
|
||||||
# it { should have_readonly_attributes(:password) }
|
# it { should have_readonly_attribute(:password) }
|
||||||
#
|
#
|
||||||
def have_readonly_attribute(value)
|
def have_readonly_attribute(value)
|
||||||
HaveReadonlyAttributeMatcher.new(value)
|
HaveReadonlyAttributeMatcher.new(value)
|
||||||
|
|
Loading…
Reference in New Issue