Module: Quickdraw::Matchers::Include
- Defined in:
- lib/quickdraw/matchers/include.rb
Instance Method Summary collapse
Instance Method Details
#not_to_include(other) ⇒ Object
10 11 12 13 14 |
# File 'lib/quickdraw/matchers/include.rb', line 10 def not_to_include(other) refute value.include?(other) do "expected `#{value.inspect}` to not include? `#{other.inspect}`" end end |
#to_include(other) ⇒ Object
4 5 6 7 8 |
# File 'lib/quickdraw/matchers/include.rb', line 4 def to_include(other) assert value.include?(other) do "expected `#{value.inspect}` to include? `#{other.inspect}`" end end |