Method: RSpec::Matchers#include
- Defined in:
- lib/rspec/matchers.rb
#include(*expected) ⇒ Object Also known as: a_collection_including, a_string_including, a_hash_including, including
Passes if actual includes expected. This works for collections and Strings. You can also pass in multiple args and it will only pass if all args are found in collection.
639 640 641 |
# File 'lib/rspec/matchers.rb', line 639 def include(*expected) BuiltIn::Include.new(*expected) end |