Skip to content

Commit

Permalink
rubocop check
Browse files Browse the repository at this point in the history
  • Loading branch information
HLFH committed Mar 28, 2020
1 parent 8a67af4 commit cd2d245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion devise_specs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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+.'
Expand Down
4 changes: 2 additions & 2 deletions lib/generators/devise/specs_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

Expand Down

0 comments on commit cd2d245

Please sign in to comment.