1 # TODO: get rid of this file. It breaks with the style in the rest of our code. (AH)
4 module Spec::Expectations::ObjectExpectations
5 def ensure_that(obj, expr)
10 def exception_from(&block)
14 rescue StandardError => e
26 return simple_matcher(%[string containing "#{string}"]) do |actual|
27 actual.include? string
31 alias :contains :contain
34 return simple_matcher("equal to #{expected}") do |actual| actual == expected end
40 return simple_matcher("object of type #{type}") do |actual|
48 return simple_matcher("string matching #{pattern}") do |actual|