Skip to content

Commit

Permalink
Disabling test for rbx
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Aug 21, 2014
1 parent c2b65c3 commit b4be76d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source "https://rubygems.org"
gemspec

group :development, :test do
gem 'pry'
gem 'pry', '~> 0.9.0'
gem 'pry-nav'
gem 'rake'
end
Expand Down
16 changes: 9 additions & 7 deletions spec/json-write-stream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@
expect(writer.stream).to equal(stream)
end

it 'supports specifying a different encoding' do
stream_writer.from_stream(stream, Encoding::UTF_16BE) do |writer|
writer.write_object do |obj_writer|
obj_writer.write_key_value('foo', 'bar')
if RUBY_ENGINE != 'rbx'
it 'supports specifying a different encoding' do
stream_writer.from_stream(stream, Encoding::UTF_16BE) do |writer|
writer.write_object do |obj_writer|
obj_writer.write_key_value('foo', 'bar')
end
end
end

expect(stream.string.bytes).to_not eq('{"foo":"bar"}'.bytes)
expect(stream.string.encode(Encoding::UTF_8).bytes.to_a).to eq('{"foo":"bar"}'.bytes.to_a)
expect(stream.string.bytes.to_a).to_not eq('{"foo":"bar"}'.bytes.to_a)
expect(stream.string.encode(Encoding::UTF_8).bytes.to_a).to eq('{"foo":"bar"}'.bytes.to_a)
end
end
end

Expand Down

0 comments on commit b4be76d

Please sign in to comment.