(maint) Remove deprecated rspec method
Prior to this commit, strings relied on failure_message_for_should which produced a deprecation warning. Use the suggested alternative 'failure_message' instead to removed the deprecation warning and ensure the tests are up to date.
This commit is contained in:
parent
e541e7c027
commit
91b46be4ea
|
@ -20,7 +20,7 @@ module StringsSpec
|
|||
@mismatches.empty?
|
||||
end
|
||||
|
||||
failure_message_for_should do
|
||||
failure_message do |actual|
|
||||
@mismatches.collect do |key, value|
|
||||
"Expected #{key} to be <#{value[1]}>, but got <#{value[0]}>."
|
||||
end.join("\n")
|
||||
|
|
Loading…
Reference in New Issue