Class: RSpec::Expectations::ExpectationTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/ramcrest/rspec.rb

Instance Method Summary collapse

Instance Method Details

#that(matcher) ⇒ Object



6
7
8
9
10
# File 'lib/ramcrest/rspec.rb', line 6

def that(matcher)
  Ramcrest::Assertion.assert_match(@target, matcher) do |description|
    ::RSpec::Expectations.fail_with(description)
  end
end