lib/suspenders/generators/ci_generator.rb in suspenders-1.50.0 vs lib/suspenders/generators/ci_generator.rb in suspenders-1.51.0
- old
+ new
@@ -1,12 +1,8 @@
-require "rails/generators"
+require_relative "base"
module Suspenders
- class CiGenerator < Rails::Generators::Base
- source_root File.expand_path(
- File.join("..", "..", "..", "templates"),
- File.dirname(__FILE__))
-
+ class CiGenerator < Generators::Base
def simplecov_test_integration
inject_into_file "spec/spec_helper.rb", before: 'SimpleCov.start "rails"' do
<<-RUBY
if ENV["CIRCLE_ARTIFACTS"]