Exception: RSpec::ActiveRecord::Expectations::NoComparisonError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/rspec/activerecord/expectations/errors.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



3
4
5
6
7
# File 'lib/rspec/activerecord/expectations/errors.rb', line 3

def message
  "You must provide an entire expectation " \
  "(e.g. expect {}.to execute.less_than(n).queries). " \
  "Try appending `less_than` to your expectation."
end