Skip to content
Browse files

move mock_with to Configuration

  • Loading branch information...
1 parent dc76a56 commit fbed3c7ae083db405d9af109b96efb3f303bf9ca @dchelimsky dchelimsky committed Jul 3, 2010
Showing with 4 additions and 6 deletions.
  1. +0 −6 lib/rspec/core/backward_compatibility.rb
  2. +4 −0 lib/rspec/core/configuration.rb
View
6 lib/rspec/core/backward_compatibility.rb
@@ -1,11 +1,5 @@
module RSpec
module Core
- class Configuration
- def mock_with(use_me_to_mock)
- self.mock_framework = use_me_to_mock
- end
- end
-
module ConstMissing
def const_missing(name)
case name
View
4 lib/rspec/core/configuration.rb
@@ -99,6 +99,10 @@ def cleaned_from_backtrace?(line)
backtrace_clean_patterns.any? { |regex| line =~ regex }
end
+ def mock_with(mock_framework)
+ self.mock_framework = mock_framework
+ end
+
def require_mock_framework_adapter
require case mock_framework.to_s
when /rspec/i

0 comments on commit fbed3c7

Please sign in to comment.
Something went wrong with that request. Please try again.