Sha256: ea345d1f59b66e436e0ea2fdd51d4d10cd9373956a145769a72cd70c1d582732
Contents?: true
Size: 423 Bytes
Versions: 8
Compression:
Stored size: 423 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) require 'mocha/object_methods' class ModuleMethodsTest < Mocha::TestCase def setup @module = Module.new.extend(Mocha::ObjectMethods) end def test_should_use_stubba_module_method_for_module assert_equal Mocha::InstanceMethod, @module.stubba_method end def test_should_stub_self_for_module assert_equal @module, @module.stubba_object end end
Version data entries
8 entries across 8 versions & 1 rubygems