Class: RSpecial::HaveAtMostAssay

Inherits:
LessEqualAssay
  • Object
show all
Extended by:
RSpecial::Have::Helpers
Defined in:
lib/rspecial/have.rb

Class Method Summary collapse

Methods included from RSpecial::Have::Helpers

assert_description, collection_actual, collection_set, not_a_collection, query_method, refute_descrptipon

Class Method Details

.assert_message(collection_or_owner, have) ⇒ Object



194
195
196
197
# File 'lib/rspecial/have.rb', line 194

def self.assert_message(collection_or_owner, have)
  actual = collection_actual(collection_or_owner, have)
  super(actual, have.expected)
end

.pass?(collection_or_owner, have) ⇒ Boolean

Returns:

  • (Boolean)


186
187
188
189
# File 'lib/rspecial/have.rb', line 186

def self.pass?(collection_or_owner, have)
  actual = collection_actual(collection_or_owner, have)
  super(actual, have.expected)
end