File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/rspec/rails/extensions/active_record Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ module ::ActiveModel::Validations
40
40
#
41
41
# @example
42
42
#
43
- # model.should have(:no).errors_on(:attribute)
44
- # model.should have(1).error_on(:attribute)
45
- # model.should have(n).errors_on(:attribute)
46
- # model.should have(n).errors_on(:attribute, :context => :create)
43
+ # expect( model).to have(:no).errors_on(:attribute)
44
+ # expect( model).to have(1).error_on(:attribute)
45
+ # expect( model).to have(n).errors_on(:attribute)
46
+ # expect( model).to have(n).errors_on(:attribute, :context => :create)
47
47
#
48
- # model.errors_on(:attribute).should include("can't be blank")
48
+ # expect( model.errors_on(:attribute)).to include("can't be blank")
49
49
def errors_on ( attribute , options = { } )
50
50
valid_args = [ options [ :context ] ] . compact
51
51
self . valid? ( *valid_args )
You can’t perform that action at this time.
0 commit comments