Module: Smartest::Matchers

Included in:
ExecutionContext
Defined in:
lib/smartest/matchers.rb

Instance Method Summary collapse

Instance Method Details

#be_nilObject



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