Method: FlexMock.check
- Defined in:
- lib/flexmock/core_class_methods.rb
.check(msg, &block) ⇒ Object
Check will assert the block returns true. If it doesn’t, an assertion failure is triggered with the given message.
121 122 123 124 125 126 127 |
# File 'lib/flexmock/core_class_methods.rb', line 121 def check(msg, &block) # :nodoc: if FlexMock.framework_adapter.respond_to?(:check) FlexMock.framework_adapter.check(msg, &block) else FlexMock.framework_adapter.make_assertion(msg, &block) end end |