Sha256: 0d0bad2b0a8ff857abf4e94e7aebc27699d8c7e1390162cd9ea223a131461077
Contents?: true
Size: 452 Bytes
Versions: 20
Compression:
Stored size: 452 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "test_helper") require 'bourne/invocation' class InvocationTest < Test::Unit::TestCase include Mocha def test_has_mock_method_name_and_args mock = 'a mock' method = :call_me args = [1, 2] invocation = Invocation.new(mock, method, args) assert_equal mock, invocation.mock assert_equal method, invocation.method_name assert_equal args, invocation.arguments end end
Version data entries
20 entries across 19 versions & 4 rubygems