test/encoding_test.rb in ircsupport-0.1.0 vs test/encoding_test.rb in ircsupport-0.2.0

- old
+ new

@@ -7,20 +7,20 @@ describe "Encoding" do utf8 = "lúði" cp1252 = "l\xFA\xF0i" it "should decode correctly" do - if %w{jruby rbx}.include?(RUBY_ENGINE) - skip("Encoding support is incomplete on rbx and jruby") + if RUBY_ENGINE == "rbx" + skip("Encoding support is incomplete on Rubinius") end decode_irc(utf8).must_equal utf8 decode_irc(utf8, 'UTF-8').must_equal utf8 decode_irc(cp1252).must_equal utf8 end it "should encode correctly" do - if %w{jruby rbx}.include?(RUBY_ENGINE) - skip("Encoding support is incomplete on rbx and jruby") + if RUBY_ENGINE == "rbx" + skip("Encoding support is incomplete on Rubinius") end encode_irc(utf8).bytes.to_a.must_equal cp1252.bytes.to_a encode_irc(utf8, 'UTF-8').bytes.to_a.must_equal utf8.bytes.to_a end end