Class: FlexMock::RSpecFrameworkAdapter
- Inherits:
-
Object
- Object
- FlexMock::RSpecFrameworkAdapter
show all
- Defined in:
- lib/gems/flexmock-0.8.3/lib/flexmock/rspec.rb
Defined Under Namespace
Classes: AssertionFailedError
Instance Method Summary
collapse
Instance Method Details
#assert_block(msg, &block) ⇒ Object
17
18
19
|
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/rspec.rb', line 17
def assert_block(msg, &block)
Spec::Expectations.fail_with(msg) unless yield
end
|
#assert_equal(a, b, msg = nil) ⇒ Object
21
22
23
24
|
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/rspec.rb', line 21
def assert_equal(a, b, msg=nil)
message = msg || "Expected equal"
assert_block(message + "\n<#{a}> expected, but was\n<#{b}>") { a == b }
end
|
#assertion_failed_error ⇒ Object