Method: FlexMock::AtLeastCountValidator#validate
- Defined in:
- lib/gems/flexmock-0.8.3/lib/flexmock/validators.rb
#validate(n) ⇒ Object
Validate the method expectation was called no more than n times.
51 52 53 54 55 |
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/validators.rb', line 51 def validate(n) FlexMock.framework_adapter.assert_block( "Method '#{@exp}' should be called at least #{@limit} times,\n" + "only called #{n} times") { n >= @limit } end |