Skip to content

Commit

Permalink
Freeze string assigned to constant (rubocop)
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed May 1, 2024
1 parent 5d7c131 commit a7e116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/media_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

NO_HITS_MSG = "The search has not returned any hits"
NO_HITS_MSG = "The search has not returned any hits".freeze

def expect_no_results(response)
expect(response.body).to include(NO_HITS_MSG)
Expand Down

0 comments on commit a7e116c

Please sign in to comment.