Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename test of app:update to more appropriate name #28422

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions railties/test/generators/app_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def test_application_name_is_detected_if_it_exists_and_app_folder_renamed
end
end

def test_rails_update_generates_correct_session_key
def test_app_update_generates_correct_session_key
app_root = File.join(destination_root, "myapp")
run_generator [app_root]

Expand All @@ -156,7 +156,7 @@ def test_new_application_not_include_api_initializers
assert_no_file "config/initializers/cors.rb"
end

def test_rails_update_keep_the_cookie_serializer_if_it_is_already_configured
def test_app_update_keep_the_cookie_serializer_if_it_is_already_configured
app_root = File.join(destination_root, "myapp")
run_generator [app_root]

Expand All @@ -168,7 +168,7 @@ def test_rails_update_keep_the_cookie_serializer_if_it_is_already_configured
end
end

def test_rails_update_set_the_cookie_serializer_to_marshal_if_it_is_not_already_configured
def test_app_update_set_the_cookie_serializer_to_marshal_if_it_is_not_already_configured
app_root = File.join(destination_root, "myapp")
run_generator [app_root]

Expand All @@ -183,7 +183,7 @@ def test_rails_update_set_the_cookie_serializer_to_marshal_if_it_is_not_already_
end
end

def test_rails_update_dont_set_file_watcher
def test_app_update_dont_set_file_watcher
app_root = File.join(destination_root, "myapp")
run_generator [app_root]

Expand All @@ -197,7 +197,7 @@ def test_rails_update_dont_set_file_watcher
end
end

def test_rails_update_does_not_create_new_framework_defaults_by_default
def test_app_update_does_not_create_new_framework_defaults_by_default
app_root = File.join(destination_root, "myapp")
run_generator [app_root]

Expand All @@ -215,7 +215,7 @@ def test_rails_update_does_not_create_new_framework_defaults_by_default
end
end

def test_rails_update_does_not_create_rack_cors
def test_app_update_does_not_create_rack_cors
app_root = File.join(destination_root, "myapp")
run_generator [app_root]

Expand All @@ -227,7 +227,7 @@ def test_rails_update_does_not_create_rack_cors
end
end

def test_rails_update_does_not_remove_rack_cors_if_already_present
def test_app_update_does_not_remove_rack_cors_if_already_present
app_root = File.join(destination_root, "myapp")
run_generator [app_root]

Expand Down