Sha256: cf4a0821cdd2a81603295df97f3c6ebbf221112f047537f967dd947467d55fd4

Contents?: true

Size: 484 Bytes

Versions: 41

Compression:

Stored size: 484 Bytes

Contents

require File.expand_path('../../../test_helper', __FILE__)

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

41 entries across 36 versions & 6 rubygems

Version Path
jferris-mocha-0.9.8.20100526112143 test/unit/parameter_matchers/anything_test.rb