Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaseras committed Oct 18, 2024
1 parent 8bf484e commit 2c6762d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion judoscale-ruby/lib/judoscale/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def as_json
end
end

BLANK_REGEXP = /\A[[:space:]]*\z/.freeze
BLANK_REGEXP = /\A[[:space:]]*\z/

private_constant :BLANK_REGEXP

Expand Down
6 changes: 3 additions & 3 deletions judoscale-ruby/test/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module Judoscale
end
end

it 'gracefully handles invalid JUDOSCALE_LOG_LEVEL values' do
it "gracefully handles invalid JUDOSCALE_LOG_LEVEL values" do
env = {
"JUDOSCALE_LOG_LEVEL" => "not_a_real_log_level"
}
Expand Down Expand Up @@ -146,7 +146,7 @@ module Judoscale
_(enabled_adapter_configs).must_be :empty?
end

it 'gracefully handles invalid log_level values and logs a warning' do
it "gracefully handles invalid log_level values and logs a warning" do
Judoscale.configure do |config|
config.log_level = :not_a_real_log_level
end
Expand All @@ -157,7 +157,7 @@ module Judoscale
_(log_string).must_include "Invalid log_level detected: not_a_real_log_level"
end

it 'gracefully handles blank log_level values' do
it "gracefully handles blank log_level values" do
Judoscale.configure do |config|
config.log_level = " "
end
Expand Down

0 comments on commit 2c6762d

Please sign in to comment.