Module: Smartest::Matchers
- Included in:
- ExecutionContext
- Defined in:
- lib/smartest/matchers.rb
Instance Method Summary collapse
- #be_nil ⇒ Object
- #eq(expected) ⇒ Object
- #include(expected) ⇒ Object
- #raise_error(expected_error = StandardError) ⇒ Object
Instance Method Details
#be_nil ⇒ Object
13 14 15 |
# File 'lib/smartest/matchers.rb', line 13 def be_nil BeNilMatcher.new end |
#eq(expected) ⇒ Object
5 6 7 |
# File 'lib/smartest/matchers.rb', line 5 def eq(expected) EqMatcher.new(expected) end |
#include(expected) ⇒ Object
9 10 11 |
# File 'lib/smartest/matchers.rb', line 9 def include(expected) IncludeMatcher.new(expected) end |
#raise_error(expected_error = StandardError) ⇒ Object
17 18 19 |
# File 'lib/smartest/matchers.rb', line 17 def raise_error(expected_error = StandardError) RaiseErrorMatcher.new(expected_error) end |