Sha256: a86e5dfeaf0d2a989c109ca3ae05aac53555831b354b11cfbf5e97ab67b70b63

Contents?: true

Size: 358 Bytes

Versions: 60

Compression:

Stored size: 358 Bytes

Contents

require 'mocha/class_method'

module Mocha

  class ModuleMethod < ClassMethod

    def method_exists?(method)
      return true if stubbee.public_methods(false).include?(method)
      return true if stubbee.protected_methods(false).include?(method)
      return true if stubbee.private_methods(false).include?(method)
      return false
    end

  end

end

Version data entries

60 entries across 49 versions & 5 rubygems

Version Path
mocha-1.5.0 lib/mocha/module_method.rb
mocha-1.4.0 lib/mocha/module_method.rb
mocha-1.3.0 lib/mocha/module_method.rb
mocha-1.2.1 lib/mocha/module_method.rb
mocha-1.2.0 lib/mocha/module_method.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/lib/mocha/module_method.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/lib/mocha/module_method.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/lib/mocha/module_method.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/lib/mocha/module_method.rb
mocha-1.1.0 lib/mocha/module_method.rb
mocha-1.0.0 lib/mocha/module_method.rb
mocha-1.0.0.alpha lib/mocha/module_method.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/lib/mocha/module_method.rb
challah-1.0.0 vendor/bundle/gems/mocha-0.14.0/lib/mocha/module_method.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/lib/mocha/module_method.rb
mocha-0.14.0 lib/mocha/module_method.rb
challah-1.0.0.beta3 vendor/bundle/gems/mocha-0.13.3/lib/mocha/module_method.rb
mocha-0.14.0.alpha lib/mocha/module_method.rb
challah-1.0.0.beta2 vendor/bundle/gems/mocha-0.13.3/lib/mocha/module_method.rb
challah-1.0.0.beta vendor/bundle/gems/mocha-0.13.3/lib/mocha/module_method.rb