Skip to content

Commit

Permalink
Linting fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
JPrevost committed Oct 11, 2024
1 parent 4225521 commit 063729e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllers/graphql_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class GraphqlControllerTest < ActionDispatch::IntegrationTest
json = response.parsed_body

assert_equal('nature', json['data']['logSearchEvent']['detectors']['journals'].first['title'])
assert_equal({"issns"=>["0028-0836", "1476-4687"]},
assert_equal({ 'issns' => %w[0028-0836 1476-4687] },
json['data']['logSearchEvent']['detectors']['journals'].first['additionalInfo'])
end

Expand Down
2 changes: 2 additions & 0 deletions test/controllers/report_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

class ReportControllerTest < ActionDispatch::IntegrationTest
Expand Down
2 changes: 2 additions & 0 deletions test/controllers/static_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

class StaticControllerTest < ActionDispatch::IntegrationTest
Expand Down
2 changes: 2 additions & 0 deletions test/helpers/metrics_helper_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

class MetricsHelperTest < ActionView::TestCase
Expand Down
1 change: 1 addition & 0 deletions test/models/category_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class CategoryTest < ActiveSupport::TestCase
test 'duplicate Categories are not allowed' do
initial_count = Category.count
Category.create!(name: 'Example')

assert_equal(initial_count + 1, Category.count)

assert_raises(ActiveRecord::RecordNotUnique) do
Expand Down
1 change: 1 addition & 0 deletions test/models/detector_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class DetectorTest < ActiveSupport::TestCase
test 'duplicate Detectors are not allowed' do
detector_count = Detector.count
Detector.create!(name: 'Example')

assert_equal(detector_count + 1, Detector.count)

assert_raises(ActiveRecord::RecordNotUnique) do
Expand Down

0 comments on commit 063729e

Please sign in to comment.