Sha256: d12c82c2a145c6b5bd5046593a6fbb59052330a2bb4da375d38d8a9b05e0c366
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 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
5 entries across 5 versions & 2 rubygems