Skip to content

Commit

Permalink
adapt test to allow spaces around hash arrow in Hash#inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
skaes committed Jan 6, 2025
1 parent 84b7c8f commit fc0b29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railsapp/test/integration/welcome_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def logjam_message
# lines.each{|l|puts l[2]}
assert_match(/Started GET "\/\?password=\[FILTERED\]"/, lines[0][2])
assert_match(/Processing by WelcomeController#index/, lines[1][2])
assert_match(/Parameters.*{"password"=>"\[FILTERED\]"/, lines[2][2])
assert_match(/Parameters.*{"password"\s?=>\s?"\[FILTERED\]"/, lines[2][2])
if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new("6.1")
assert_match(/Rendering/, lines[3][2])
assert_match(/Rendering/, lines[4][2])
Expand Down

0 comments on commit fc0b29d

Please sign in to comment.