We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3daebd5 commit ca907cfCopy full SHA for ca907cf
lib/generators/rspec.rb
@@ -20,8 +20,19 @@ def self.source_root(path = nil)
20
end
21
22
23
+ # This is specifically to parse and load `.rspec` file,
24
+ # So we can use different directory.
25
+ def self.configuration
26
+ @configuration ||= begin
27
+ configuration = RSpec.configuration
28
+ options = RSpec::Core::ConfigurationOptions.new({})
29
+ options.configure(configuration)
30
+ configuration
31
+ end
32
33
+
34
def target_path(*paths)
- File.join(RSpec.configuration.default_path, *paths)
35
+ File.join(self.class.configuration.default_path, *paths)
36
37
38
0 commit comments