Sha256: 8e07352736c1dc7d6cb661cd3f11f4e3c0258ac6b943ef9b8c6c410545552e60
Contents?: true
Size: 605 Bytes
Versions: 48
Compression:
Stored size: 605 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "..", "test_helper") require 'mocha/parameter_matchers/includes' require 'mocha/inspect' class IncludesTest < Test::Unit::TestCase include Mocha::ParameterMatchers def test_should_match_object_including_value matcher = includes(:x) assert matcher == [:x, :y, :z] end def test_should_not_match_object_that_does_not_include_value matcher = includes(:not_included) assert matcher != [:x, :y, :z] end def test_should_describe_matcher matcher = includes(:x) assert_equal "includes(:x)", matcher.mocha_inspect end end
Version data entries
48 entries across 48 versions & 3 rubygems