Class: RSpecial::HaveExactlyAssay

Inherits:
EqualAssay
  • 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

Error message for have equal assertion.



142
143
144
145
# File 'lib/rspecial/have.rb', line 142

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)


134
135
136
137
# File 'lib/rspecial/have.rb', line 134

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