Sha256: 84500cdd7d99f15ab300477b1aeb853ca41b3f014a5c4e3f546e3d6803b59326
Contents?: true
Size: 494 Bytes
Versions: 46
Compression:
Stored size: 494 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.matches?([:something]) assert matcher.matches?([{'x' => 'y'}]) end def test_should_describe_matcher matcher = anything assert_equal "anything", matcher.mocha_inspect end end
Version data entries
46 entries across 46 versions & 9 rubygems