From 394cd65e69ec25adba35bddda6c6af8a95f57804 Mon Sep 17 00:00:00 2001 From: Reid Hewitt Date: Wed, 13 Nov 2024 13:43:02 -0700 Subject: [PATCH] lint --- config/initializers/application_controller_renderer.rb | 1 + config/initializers/backtrace_silencers.rb | 1 + config/initializers/cors.rb | 1 + config/initializers/inflections.rb | 1 + config/initializers/mime_types.rb | 1 + db/seeds.rb | 1 + test/controllers/translates_controller_test.rb | 8 ++++---- 7 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb index f4556db..6d56e43 100644 --- a/config/initializers/application_controller_renderer.rb +++ b/config/initializers/application_controller_renderer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index d0f0d3b..4b63f28 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 5f68d44..82eafe5 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Avoid CORS issues when API is called from the frontend app. diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index aa7435f..dc84742 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index 6e1d16f..be6fedc 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/db/seeds.rb b/db/seeds.rb index 8744e3c..ebd1889 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). # diff --git a/test/controllers/translates_controller_test.rb b/test/controllers/translates_controller_test.rb index 874735f..3bc4f25 100644 --- a/test/controllers/translates_controller_test.rb +++ b/test/controllers/translates_controller_test.rb @@ -16,7 +16,7 @@ class TranslatesControllerTest < ActionDispatch::IntegrationTest writer: @translate.writer }, as: :json - assert_response 200 + assert_response :ok end test 'post invalid transformation of fgdc to iso19115_3' do @@ -32,7 +32,7 @@ class TranslatesControllerTest < ActionDispatch::IntegrationTest writer: @translate.writer }, as: :json - assert_response 422 + assert_response :unprocessable_entity end test 'post valid transformation of iso19115_2_datagov to dcat_us' do @@ -48,7 +48,7 @@ class TranslatesControllerTest < ActionDispatch::IntegrationTest writer: @translate.writer }, as: :json - assert_response 200 + assert_response :ok end test 'post invalid transformation of iso19115_2_datagov to dcat_us' do @@ -64,6 +64,6 @@ class TranslatesControllerTest < ActionDispatch::IntegrationTest writer: @translate.writer }, as: :json - assert_response 422 + assert_response :unprocessable_entity end end