Browse files

avoid warning from setting encoding if possible

  • Loading branch information...
1 parent 9811a3d commit 66f42495854446316e5d23168905e8e9bf87e74b @indirect indirect committed Mar 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/quality_spec.rb
View
2 spec/quality_spec.rb
@@ -1,6 +1,6 @@
require "spec_helper"
-if defined?(Encoding)
+if defined?(Encoding) && Encoding.default_external != "UTF-8"
Encoding.default_external = "UTF-8"
end

0 comments on commit 66f4249

Please sign in to comment.