@@ -9,7 +9,7 @@ module TwoFer
9
9
missing_default_param : "ruby.two-fer.missing_default_param" , # "There is no correct default param - the tests will fail"
10
10
incorrect_default_param : "ruby.two-fer.incorrect_default_param" , # "You could set the default value to 'you' to avoid conditionals"
11
11
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"
13
13
kernel_format : "ruby.two-fer.avoid_kernel_format" , # "Rather than using the format method, use interpolation"
14
14
string_format : "ruby.two-fer.avoid_string_format" , # "Rather than using string's format/percentage method, use interpolation"
15
15
}
@@ -84,7 +84,7 @@ def check_for_single_line_solution!
84
84
end
85
85
86
86
# "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 ?
88
88
89
89
# format("One for %s, one for me.", name)
90
90
approve_if_implicit_return! ( :kernel_format , { name_variable : solution . first_parameter_name } ) if solution . uses_kernel_format?
0 commit comments