diff --git a/devise_specs.gemspec b/devise_specs.gemspec index a700f3d..f020d16 100644 --- a/devise_specs.gemspec +++ b/devise_specs.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'devise_specs' - s.version = '0.0.6' + s.version = '0.0.7' s.authors = ["Gaspard d'Hautefeuille"] s.email = 'ruby@dhautefeuille.eu' s.summary = 'Drop-in upgrade of legacy devise-specs gem. Generates the Devise acceptance tests for Rails 6+.' diff --git a/lib/generators/devise/specs_generator.rb b/lib/generators/devise/specs_generator.rb index cf01999..cdca79d 100644 --- a/lib/generators/devise/specs_generator.rb +++ b/lib/generators/devise/specs_generator.rb @@ -55,7 +55,7 @@ def fixture_replacement def insert_factory_bot_attributes frozen = "# frozen_string_literal: true\n\n" - path = "spec/factories/#{plural_name}.rb" + path = "spec/factories/#{plural_name}.rb" attrs = "#{ATTRIBUTES.gsub(/^ {4}/, '')}\n end\nend\n" data = "FactoryBot.define do\n factory :#{singular_name} do" @@ -64,7 +64,7 @@ def insert_factory_bot_attributes def insert_fabrication_attributes frozen = "# frozen_string_literal: true\n\n" - path = "spec/fabricators/#{singular_name}_fabricator.rb" + path = "spec/fabricators/#{singular_name}_fabricator.rb" attrs = "#{ATTRIBUTES.gsub(/^ {6}/, '')}\nend\n" after = "Fabricator(:#{singular_name}) do"