Skip to content

Commit

Permalink
Only set default internal encoding on 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed May 15, 2011
1 parent 0d71a88 commit daf0299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/otnetstring_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
describe OTNetstring do describe OTNetstring do
context "parsing" do context "parsing" do
before do before do
Encoding.default_internal = 'utf-8' Encoding.default_internal = 'utf-8' if defined? Encoding
end end


it "parses an integer" do it "parses an integer" do
Expand Down

0 comments on commit daf0299

Please sign in to comment.