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-1.0.0.beta vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.9.1.beta.3 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
devise_sociable-0.1.0 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.9.1.beta vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.9.0 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.6.2 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
challah-0.5.1 vendor/bundle/gems/mocha-0.10.5/test/unit/parameter_matchers/anything_test.rb
mocha-0.10.5 test/unit/parameter_matchers/anything_test.rb
challah-0.5.0 vendor/bundle/gems/mocha-0.10.3/test/unit/parameter_matchers/anything_test.rb
mocha-0.10.4 test/unit/parameter_matchers/anything_test.rb