Skip to content
Browse files

Fix matchers for 1.8.7

  • Loading branch information...
1 parent cf74feb commit fb00d25def97f07a4792db28f720ca028cbacc41 @bogdan committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/support/matchers.rb
View
2 spec/support/matchers.rb
@@ -50,7 +50,7 @@ def failure_message
private
def force_encoding(text)
- text.clone.force_encoding("UTF-8") if "1.9.3".respond_to? :force_encoding
+ "1.9.3".respond_to?(:force_encoding) ? text.clone.force_encoding("UTF-8") : text
end
end

0 comments on commit fb00d25

Please sign in to comment.
Something went wrong with that request. Please try again.