Browse files

Only set default internal encoding on 1.9

  • Loading branch information...
1 parent 0d71a88 commit daf02996a672be382730ac2dc378838edf38603f @josh josh committed May 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/otnetstring_spec.rb
View
2 spec/otnetstring_spec.rb
@@ -26,7 +26,7 @@
describe OTNetstring do
context "parsing" do
before do
- Encoding.default_internal = 'utf-8'
+ Encoding.default_internal = 'utf-8' if defined? Encoding
end
it "parses an integer" do

0 comments on commit daf0299

Please sign in to comment.