Sha256: c96254ec0b84b2744926d92aba4e2579606ecc0aef15853549b0921baf0586b4
Contents?: true
Size: 476 Bytes
Versions: 17
Compression:
Stored size: 476 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) require 'mocha/module_methods' require 'mocha/object_methods' class ModuleMethodsTest < Mocha::TestCase def setup @module = Module.new.extend(Mocha::ModuleMethods, Mocha::ObjectMethods) end def test_should_use_stubba_module_method_for_module assert_equal Mocha::ModuleMethod, @module.stubba_method end def test_should_stub_self_for_module assert_equal @module, @module.stubba_object end end
Version data entries
17 entries across 14 versions & 4 rubygems