Permalink
Browse files

rdoc: correct indentation helps (markdown)

  • Loading branch information...
1 parent e26fb34 commit 78c754880a063b822558c2f88f6355abe29357ef @dchelimsky dchelimsky committed Nov 22, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/rspec/rails/extensions/active_record/base.rb
View
14 lib/rspec/rails/extensions/active_record/base.rb
@@ -7,9 +7,9 @@ module ActiveRecord
#
# ## Examples:
#
- # ModelClass.should have(:no).records
- # ModelClass.should have(1).record
- # ModelClass.should have(n).records
+ # ModelClass.should have(:no).records
+ # ModelClass.should have(1).record
+ # ModelClass.should have(n).records
def records
find(:all)
end
@@ -32,11 +32,11 @@ module ::ActiveModel::Validations
#
# ## Examples:
#
- # model.should have(:no).errors_on(:attribute)
- # model.should have(1).error_on(:attribute)
- # model.should have(n).errors_on(:attribute)
+ # model.should have(:no).errors_on(:attribute)
+ # model.should have(1).error_on(:attribute)
+ # model.should have(n).errors_on(:attribute)
#
- # model.errors_on(:attribute).should include("can't be blank")
+ # model.errors_on(:attribute).should include("can't be blank")
def errors_on(attribute)
self.valid?
[self.errors[attribute]].flatten.compact

0 comments on commit 78c7548

Please sign in to comment.