Permalink
Browse files

Define a `framework_name` class method on all mocking adapter modules…

… so we can get `RSpec.configuration.mock_framework.framework_name`
  • Loading branch information...
justinko committed Apr 1, 2011
1 parent 1ffd47d commit 622505d616d950ed53d12c6e82dbb953ba6241b4
@@ -8,6 +8,8 @@
module RSpec
module Core
module MockFrameworkAdapter
+
+ def self.framework_name; :flexmock end
include FlexMock::MockContainer
def setup_mocks_for_rspec
@@ -4,6 +4,8 @@
module RSpec
module Core
module MockFrameworkAdapter
+
+ def self.framework_name; :mocha end
# Mocha::Standalone was deprecated as of Mocha 0.9.7.
begin
@@ -5,6 +5,8 @@
module RSpec
module Core
module MockFrameworkAdapter
+
+ def self.framework_name; :rr end
include RR::Extensions::InstanceMethods
@@ -3,7 +3,9 @@
module RSpec
module Core
module MockFrameworkAdapter
-
+
+ def self.framework_name; :rspec end
+
def setup_mocks_for_rspec
RSpec::Mocks::setup(self)
end

1 comment on commit 622505d

Owner

dchelimsky commented on 622505d Apr 1, 2011

You gonna go back in time and write some cukes for this before implementing it? ;)

Please sign in to comment.