(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:
Hailee Kenney 2016-03-24 14:45:48 -07:00
parent e541e7c027
commit 91b46be4ea
1 changed files with 1 additions and 1 deletions

View File

@ -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")