# File lib/flexmock/rspec.rb, line 29 def assert_equal(a, b, msg=nil) message = msg || "Expected equal" make_assertion(message + "\n<#{a}> expected, but was\n<#{b}>") { a == b } end
# File lib/flexmock/rspec.rb, line 35 def assertion_failed_error SpecModule::Expectations::ExpectationNotMetError end
# File lib/flexmock/rspec.rb, line 24 def make_assertion(msg, &block) msg = msg.call if msg.is_a?(Proc) SpecModule::Expectations.fail_with(msg) unless yield end