@@ -9,7 +9,7 @@ module TwoFer
99 missing_default_param : "ruby.two-fer.missing_default_param" , # "There is no correct default param - the tests will fail"
1010 incorrect_default_param : "ruby.two-fer.incorrect_default_param" , # "You could set the default value to 'you' to avoid conditionals"
1111 reassigning_param : "ruby.two-fer.reassigning_param" , # "You don't need to reassign - use the default param"
12- string_building : "ruby.two-fer.avoid_string_building " , # "Rather than using string building, use interpolation"
12+ string_concatenation : "ruby.two-fer.avoid_string_concatenation " , # "Rather than using string building, use interpolation"
1313 kernel_format : "ruby.two-fer.avoid_kernel_format" , # "Rather than using the format method, use interpolation"
1414 string_format : "ruby.two-fer.avoid_string_format" , # "Rather than using string's format/percentage method, use interpolation"
1515 }
@@ -84,7 +84,7 @@ def check_for_single_line_solution!
8484 end
8585
8686 # "One for " + name + ", one for me."
87- approve_if_implicit_return! ( :string_building , { name_variable : solution . first_parameter_name } ) if solution . uses_string_building ?
87+ approve_if_implicit_return! ( :string_concatenation , { name_variable : solution . first_parameter_name } ) if solution . uses_string_concatenation ?
8888
8989 # format("One for %s, one for me.", name)
9090 approve_if_implicit_return! ( :kernel_format , { name_variable : solution . first_parameter_name } ) if solution . uses_kernel_format?
0 commit comments