From 87d1cf92108e4849e885ae1531b808ddc191b994 Mon Sep 17 00:00:00 2001 From: Andy Lindeman Date: Tue, 25 Jun 2013 01:26:05 -0400 Subject: [PATCH] Documentation updates --- lib/rspec/rails/extensions/active_record/base.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/rspec/rails/extensions/active_record/base.rb b/lib/rspec/rails/extensions/active_record/base.rb index d14602f6b7..3f067b3b06 100644 --- a/lib/rspec/rails/extensions/active_record/base.rb +++ b/lib/rspec/rails/extensions/active_record/base.rb @@ -40,12 +40,12 @@ module ::ActiveModel::Validations # # @example # - # model.should have(:no).errors_on(:attribute) - # model.should have(1).error_on(:attribute) - # model.should have(n).errors_on(:attribute) - # model.should have(n).errors_on(:attribute, :context => :create) + # expect(model).to have(:no).errors_on(:attribute) + # expect(model).to have(1).error_on(:attribute) + # expect(model).to have(n).errors_on(:attribute) + # expect(model).to have(n).errors_on(:attribute, :context => :create) # - # model.errors_on(:attribute).should include("can't be blank") + # expect(model.errors_on(:attribute)).to include("can't be blank") def errors_on(attribute, options = {}) valid_args = [options[:context]].compact self.valid?(*valid_args)