Sha256: b83defe1283b1a074c0f010c548b7cd9d50d627e8ad56f81f29ba052859d72c3
Contents?: true
Size: 569 Bytes
Versions: 85
Compression:
Stored size: 569 Bytes
Contents
require File.expand_path('../../../test_helper', __FILE__) require 'mocha/parameter_matchers/equals' require 'mocha/inspect' class EqualsTest < Test::Unit::TestCase include Mocha::ParameterMatchers def test_should_match_object_that_equals_value matcher = equals('x') assert matcher.matches?(['x']) end def test_should_not_match_object_that_does_not_equal_value matcher = equals('x') assert !matcher.matches?(['y']) end def test_should_describe_matcher matcher = equals('x') assert_equal "'x'", matcher.mocha_inspect end end
Version data entries
85 entries across 68 versions & 7 rubygems