Skip to content
Browse files

Fix check for string encodings.

  • Loading branch information...
1 parent 4a964f3 commit edf6c013a8356c12f3d8a98cf28b5ee7d9b04199 @gkellogg gkellogg committed Jan 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/spec_helper.rb
View
2 spec/spec_helper.rb
@@ -16,7 +16,7 @@ def fixture_path(filename)
File.join(File.dirname(__FILE__), 'data', filename)
end
-if RUBY_VERSION =~ /1.9/
+if "".respond_to?(:encoding)
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
end

0 comments on commit edf6c01

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