module RSpec::Matchers
Public Instance Methods
a_file_with_same_content_like(expected)
click to toggle source
rubocop:enable Style/PredicateName
# File lib/aruba/matchers/deprecated/file.rb, line 11 def a_file_with_same_content_like(expected) RSpec.deprecate('`a_file_with_same_content_like`', :replacement => '`a_file_with_same_content_as`') a_file_with_same_content_as(expected) end
have_same_file_content_like(expected)
click to toggle source
rubocop:disable Style/PredicateName
# File lib/aruba/matchers/deprecated/file.rb, line 4 def have_same_file_content_like(expected) RSpec.deprecate('`have_same_file_content_like`', :replacement => '`have_same_file_content_as`') have_same_file_content_as(expected) end
include_an_object(expected)
click to toggle source
Passes if the provided matcher passes when checked against any element of the collection.
@example
expect([1, 4, 5]).to include_an_object be_odd
@note You can also use this with compound matchers as well.
@example
expect([1, 4, 'a']).to include_an_object( be_odd.and be_an(Integer) )
# File lib/aruba/matchers/collection/include_an_object.rb, line 118 def include_an_object(expected) ::Aruba::Matchers::IncludeAnObject.new(expected) end