Skip to content

Commit

Permalink
Work around rubinius bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Mar 19, 2012
1 parent 9765851 commit f26ac93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/vcr/structs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,11 @@ def instance(body)

it "unzips gzipped response" do
io = StringIO.new
Zlib::GzipWriter.new(io).<<(content).close

writer = Zlib::GzipWriter.new(io)
writer << content
writer.close

gzipped = io.string
resp = instance(gzipped, 'gzip')
resp.should be_compressed
Expand Down

0 comments on commit f26ac93

Please sign in to comment.