Sha256: 1acf3e7ba84d566053c381493e2065631748c362539ce08cca1e1bbf00a577f8
Contents?: true
Size: 581 Bytes
Versions: 49
Compression:
Stored size: 581 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "test_helper") require 'mocha/stub' class StubTest < Test::Unit::TestCase include Mocha def test_should_always_verify_successfully stub = Stub.new(nil, :expected_method) assert stub.verify stub.invoke assert stub.verify end def test_should_match_successfully_for_any_number_of_invocations stub = Stub.new(nil, :expected_method) assert stub.match?(:expected_method) stub.invoke assert stub.match?(:expected_method) stub.invoke assert stub.match?(:expected_method) end end
Version data entries
49 entries across 49 versions & 3 rubygems