-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,11 +29,11 @@ def self.runner_defined? | |
end | ||
|
||
def self.is_rspec_3 | ||
defined?(::Rspec) && ::RSpec::Core::Formatters.respond_to?(:register) | ||
defined?(::RSpec) && ::RSpec::Core::Formatters.respond_to?(:register) | ||
end | ||
|
||
def self.is_rspec_2 | ||
defined?(::Rspec) && !is_rspec_3 | ||
defined?(::RSpec) && !is_rspec_3 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bethesque
Author
Member
|
||
end | ||
|
||
def self.with_rspec_3 | ||
|
👋 me again. I'm also getting an error in another app, that may be related to the RSpec work in the past couple commits. In particular I'm getting a NoMethodError for
RSpec.configuration
. In my env, theRSpec
module actually ends up being a reference to the module defined in this file rather than the top-level RSpec. Do you have any ideas?