Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Nov 13, 2024
1 parent 5b20973 commit 394cd65
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/initializers/application_controller_renderer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# Be sure to restart your server when you modify this file.

# ActiveSupport::Reloader.to_prepare do
Expand Down
1 change: 1 addition & 0 deletions config/initializers/backtrace_silencers.rb
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions config/initializers/inflections.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions config/initializers/mime_types.rb
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -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).
#
Expand Down
8 changes: 4 additions & 4 deletions test/controllers/translates_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -64,6 +64,6 @@ class TranslatesControllerTest < ActionDispatch::IntegrationTest
writer: @translate.writer
},
as: :json
assert_response 422
assert_response :unprocessable_entity
end
end

0 comments on commit 394cd65

Please sign in to comment.