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
challah-0.4.1 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.4.0 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.3.5 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.3.4 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.3.3 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.3.2 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.3.1 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.3.0 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.2.1 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.2.0 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
mocha-0.10.3 test/unit/parameter_matchers/anything_test.rb
mocha-0.10.2 test/unit/parameter_matchers/anything_test.rb
mocha-0.10.1 test/unit/parameter_matchers/anything_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/mocha-0.9.12/test/unit/parameter_matchers/anything_test.rb
mocha-0.10.0 test/unit/parameter_matchers/anything_test.rb
mocha-0.9.12 test/unit/parameter_matchers/anything_test.rb
mocha-0.9.11 test/unit/parameter_matchers/anything_test.rb
mocha-0.9.10 test/unit/parameter_matchers/anything_test.rb
mocha-macruby-0.9.9.20101102121900 test/unit/parameter_matchers/anything_test.rb
mocha-0.9.9 test/unit/parameter_matchers/anything_test.rb