Permalink
Browse files

delegate instead of alias_method

  • Loading branch information...
1 parent b06bc35 commit 44422d056ad3db1340396c012b1ad886aa7fcd5f @dchelimsky dchelimsky committed Feb 10, 2012
Showing with 10 additions and 4 deletions.
  1. +10 −4 lib/rspec/core/mocking/with_mocha.rb
@@ -4,7 +4,6 @@
module RSpec
module Core
module MockFrameworkAdapter
-
def self.framework_name; :mocha end
# Mocha::Standalone was deprecated as of Mocha 0.9.7.
@@ -14,10 +13,17 @@ def self.framework_name; :mocha end
include Mocha::Standalone
end
- alias :setup_mocks_for_rspec :mocha_setup
- alias :verify_mocks_for_rspec :mocha_verify
- alias :teardown_mocks_for_rspec :mocha_teardown
+ def setup_mocks_for_rspec
+ mocha_setup
+ end
+
+ def verify_mocks_for_rspec
+ mocha_verify
+ end
+ def teardown_mocks_for_rspec
+ mocha_teardown
+ end
end
end
end

0 comments on commit 44422d0

Please sign in to comment.