4
# Copyright 2003, 2004, 2005, 2006, 2007 by Jim Weirich (jim@weirichhouse.org).
7
# Permission is granted for use, copying, modification, distribution,
8
# and distribution of modified versions of this work as long as the
9
# above copyright notice is included.
12
require 'flexmock/base'
16
class RSpecFrameworkAdapter
17
def assert_block(msg, &block)
18
Spec::Expectations.fail_with(msg) unless yield
21
def assert_equal(a, b, msg=nil)
22
message = msg || "Expected equal"
23
assert_block(message + "\n<#{a}> expected, but was\n<#{b}>") { a == b }
26
class AssertionFailedError < StandardError; end
27
def assertion_failed_error
28
Spec::Expectations::ExpectationNotMetError
32
@framework_adapter = RSpecFrameworkAdapter.new
b'\\ No newline at end of file'