diff --git a/exercises/practice/dnd-character/dnd_character_test.rb b/exercises/practice/dnd-character/dnd_character_test.rb index f2c9dcd81e..de68709456 100644 --- a/exercises/practice/dnd-character/dnd_character_test.rb +++ b/exercises/practice/dnd-character/dnd_character_test.rb @@ -85,13 +85,13 @@ def test_random_character_stats attributes.each do |attribute| assert_includes allowed_range, character.send(attribute), - informative_message % [attribute, allowed_range] + informative_message % [attribute, allowed_range] # rubocop:disable Style/FormatString end informative_message = "The character's %s must be %s" assert_equal expected_hitpoints, character.hitpoints, - informative_message % ['hitpoints', expected_hitpoints] + informative_message % ['hitpoints', expected_hitpoints] # rubocop:disable Style/FormatString end end @@ -107,7 +107,7 @@ def test_stats_calculated_once second_call = character.send(attribute) assert_equal first_call, second_call, - informative_message % [attribute, first_call, second_call] + informative_message % [attribute, first_call, second_call] # rubocop:disable Style/FormatString end end end