Skip to content

Commit 348f9b1

Browse files
authored
Move test helpers into test_helpers (rails#54688)
1 parent a59db85 commit 348f9b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

railties/lib/rails/generators/rails/authentication/authentication_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def create_authentication_files
3131
template "app/views/passwords_mailer/reset.text.erb"
3232

3333
template "test/mailers/previews/passwords_mailer_preview.rb"
34-
template "test/helpers/session_test_helper.rb"
34+
template "test/test_helpers/session_test_helper.rb"
3535
end
3636

3737
def configure_application_controller
@@ -58,7 +58,7 @@ def add_migrations
5858
end
5959

6060
def configure_test_helper
61-
inject_into_file "test/test_helper.rb", "require_relative \"helpers/session_test_helper\"\n", after: "require \"rails/test_help\"\n"
61+
inject_into_file "test/test_helper.rb", "require_relative \"test_helpers/session_test_helper\"\n", after: "require \"rails/test_help\"\n"
6262
inject_into_class "test/test_helper.rb", "TestCase", " include SessionTestHelper\n"
6363
end
6464

0 commit comments

Comments
 (0)