test/unit/module_methods_test.rb in mocha-1.9.0 vs test/unit/module_methods_test.rb in mocha-1.10.0.alpha
- old
+ new
@@ -1,15 +1,14 @@
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)
+ @module = Module.new.extend(Mocha::ObjectMethods)
end
def test_should_use_stubba_module_method_for_module
- assert_equal Mocha::ModuleMethod, @module.stubba_method
+ assert_equal Mocha::InstanceMethod, @module.stubba_method
end
def test_should_stub_self_for_module
assert_equal @module, @module.stubba_object
end