lib/gemsmith/builders/rspec/helper.rb in gemsmith-21.10.0 vs lib/gemsmith/builders/rspec/helper.rb in gemsmith-22.0.0

- old
+ new

@@ -4,19 +4,20 @@ module Gemsmith module Builders module RSpec # Builds RSpec spec helper for project skeleton. - class Helper < Rubysmith::Builders::Abstract + class Helper < Rubysmith::Builders::RSpec::Helper using Refinements::Struct def call - return configuration unless configuration.build_rspec && configuration.build_cli + return false unless settings.build_rspec && settings.build_cli - builder.call(configuration.merge(template_path: "%project_name%/spec/spec_helper.rb.erb")) - .touch + super + builder.call(settings.merge(template_path: "%project_name%/spec/spec_helper.rb.erb")) .replace("%r(^/spec/)", "%r((.+/container\\.rb|^/spec/))") - configuration + + true end end end end end