test/encode_reader_test.rb in iostreams-1.0.0.beta7 vs test/encode_reader_test.rb in iostreams-1.0.0
- old
+ new
@@ -19,9 +19,10 @@
end
describe '#read' do
describe 'replacement' do
it 'does not strip invalid characters' do
+ skip "Does not raise on JRuby" if defined?(JRuby)
input = StringIO.new(bad_data)
IOStreams::Encode::Reader.stream(input, encoding: 'UTF-8') do |io|
assert_raises ::Encoding::UndefinedConversionError do
io.read.encoding
end