We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 759db8d + 6813ed3 commit 13895d9Copy full SHA for 13895d9
lib/generators/graphiti/install_generator.rb
@@ -41,8 +41,10 @@ def install
41
RUBY
42
end
43
44
- inject_into_file "spec/rails_helper.rb", after: /RSpec.configure.+^end$/m do
45
- "\n\nGraphitiSpecHelpers::RSpec.schema!"
+ if defined?(RSpec)
+ inject_into_file "spec/rails_helper.rb", after: /RSpec.configure.+^end$/m do
46
+ "\n\nGraphitiSpecHelpers::RSpec.schema!"
47
+ end
48
49
50
insert_into_file "config/routes.rb", after: "Rails.application.routes.draw do\n" do
0 commit comments