Sha256: 4da7d8eb809ad01f10811d97993998061a6f9186505034e35f5fdd60348a00f2

Contents?: true

Size: 359 Bytes

Versions: 41

Compression:

Stored size: 359 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

41 entries across 36 versions & 6 rubygems

Version Path
challah-1.0.0.beta vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.9.1.beta.3 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
devise_sociable-0.1.0 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.9.1.beta vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.9.0 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.6.2 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.3/lib/mocha/module_method.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/module_method.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.3/lib/mocha/module_method.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.3/lib/mocha/module_method.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.3/lib/mocha/module_method.rb
challah-0.5.1 vendor/bundle/gems/mocha-0.10.5/lib/mocha/module_method.rb
mocha-0.10.5 lib/mocha/module_method.rb
challah-0.5.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/module_method.rb
mocha-0.10.4 lib/mocha/module_method.rb