Sha256: cd214b88f1c06840e76aea47c857da107881211f7ce8795584112c71e92d21b5
Contents?: true
Size: 476 Bytes
Versions: 48
Compression:
Stored size: 476 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "..", "test_helper") require 'mocha/parameter_matchers/anything' require 'mocha/inspect' class AnythingTest < Test::Unit::TestCase include Mocha::ParameterMatchers def test_should_match_anything matcher = anything assert matcher == :something assert matcher == {'x' => 'y'} end def test_should_describe_matcher matcher = anything assert_equal "anything", matcher.mocha_inspect end end
Version data entries
48 entries across 48 versions & 3 rubygems