Skip to content

Commit

Permalink
Fix linting violations (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepolitodesign committed May 10, 2024
1 parent bbf1451 commit 3ba10a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/generators/suspenders/email_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def self.delivering_email(message)
test "configures application to user email intercepter" do
run_generator

assert_file app_root("config/application.rb"), /config\.to_prepare\s*do.\s*EmailInterceptor\.config\.interceptor_addresses\s*=\s*ENV\.fetch\("INTERCEPTOR_ADDRESSES",\s*\"\"\)\.split\(\",\"\).\s*end/m
assert_file app_root("config/application.rb"), /config\.to_prepare\s*do.\s*EmailInterceptor\.config\.interceptor_addresses\s*=\s*ENV\.fetch\("INTERCEPTOR_ADDRESSES",\s*""\)\.split\(","\).\s*end/m
end

test "configures action mailer in development" do
Expand Down
2 changes: 1 addition & 1 deletion test/generators/suspenders/rake_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RakeGeneratorTest < Rails::Generators::TestCase
run_generator

assert_file app_root("Rakefile") do |file|
assert_match /task default: "suspenders:rake"/, file
assert_match(/task default: "suspenders:rake"/, file)
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/generators/suspenders/tasks_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TasksGeneratorTest < Rails::Generators::TestCase
test "returns early if factory_bot_rails is not installed" do
output = run_generator

assert_match /This generator requires Factory Bot/, output
assert_match(/This generator requires Factory Bot/, output)
assert_no_file app_root("lib/tasks/dev.rake")
end

Expand Down
2 changes: 1 addition & 1 deletion test/generators/suspenders/testing_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TestingGeneratorTest < Rails::Generators::TestCase
assert_file "spec/rails_helper.rb" do |file|
assert_match(/RSpec\.configure do \|config\|\s{3}config\.infer_base_class_for_anonymous_controllers\s*=\s*false/m,
file)
assert_match(/^\#{0}\s*Rails\.root\.glob\(\"spec\/support\/\*\*\/\*\.rb\"\)\.sort\.each { \|f\| require f }/, file)
assert_match(/^\#{0}\s*Rails\.root\.glob\("spec\/support\/\*\*\/\*\.rb"\)\.sort\.each { \|f\| require f }/, file)
end
end

Expand Down

0 comments on commit 3ba10a6

Please sign in to comment.