Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

delegate instead of alias_method

  • Loading branch information...
commit 44422d056ad3db1340396c012b1ad886aa7fcd5f 1 parent b06bc35
@dchelimsky dchelimsky authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 lib/rspec/core/mocking/with_mocha.rb
View
14 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
Please sign in to comment.
Something went wrong with that request. Please try again.