| Module | Mocks::Assertions |
| In: |
lib/mocks/assertions.rb
|
| mock_object | [RW] |
# File lib/mocks/assertions.rb, line 28 def assert_empty_mock ( comment='' ) assert_mock_calls [], (comment.empty?)? 'not empty' : comment end
# File lib/mocks/assertions.rb, line 32 def assert_last_mock ( *ref ) assert_equal(ref, mock_object.mock_calls.last.args) end
# File lib/mocks/assertions.rb, line 36 def assert_last_mock_args ( ref, comment='' ) assert_equal(ref, mock_object.mock_calls_array.last.args, comment) end
# File lib/mocks/assertions.rb, line 40 def assert_last_mock_call ( ref, comment='' ) assert_equal(ref, mock_object.mock_calls_array.last, comment) end
# File lib/mocks/assertions.rb, line 13 def assert_mock ( *ref ) if ref.size == 1 and (f = ref.first).is_a? Array and f.first.is_a? Array ref = f end assert_equal(ref, mock_object.mock_args) end
# File lib/mocks/assertions.rb, line 24 def assert_mock_args ( ref, comment='' ) assert_equal(ref, mock_object.mock_args, comment) end
# File lib/mocks/assertions.rb, line 20 def assert_mock_calls ( ref, comment='' ) assert_equal(ref, mock_object.mock_calls_array, comment) end