Permalink
Browse files

Fix documentation typo. Method is named have_readonly_attribute, but …

…documentation refers to have_readonly_attributes.
  • Loading branch information...
JDutil committed Sep 21, 2011
1 parent 3d94390 commit 69286613d0162252749516f44014c4b50f708847
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb
@@ -5,7 +5,7 @@ module ActiveRecord # :nodoc:
# Ensures that the attribute cannot be changed once the record has been
# created.
#
- # it { should have_readonly_attributes(:password) }
+ # it { should have_readonly_attribute(:password) }
#
def have_readonly_attribute(value)
HaveReadonlyAttributeMatcher.new(value)

0 comments on commit 6928661

Please sign in to comment.