spec/http/http_spec.rb in brianmario-yajl-ruby-0.4.8 vs spec/http/http_spec.rb in brianmario-yajl-ruby-0.5.0
- old
+ new
@@ -19,22 +19,18 @@
@bzip2 = File.new(File.expand_path(File.dirname(__FILE__) + '/fixtures/http.bzip2.dump'), 'r')
@deflate = File.new(File.expand_path(File.dirname(__FILE__) + '/fixtures/http.deflate.dump'), 'r')
@gzip = File.new(File.expand_path(File.dirname(__FILE__) + '/fixtures/http.gzip.dump'), 'r')
parse_off_headers(@raw)
- @raw_template_hash = Yajl::Stream.parse(@raw)
+ @raw_template_hash = Yajl::Parser.new.parse(@raw)
@raw.rewind
end
after(:all) do
@raw.close unless @raw.closed?
@bzip2.close unless @bzip2.closed?
@deflate.close unless @deflate.closed?
@gzip.close unless @gzip.closed?
- end
-
- after(:each) do
- GC.start
end
it "should parse a raw response" do
file = File.expand_path(File.dirname(__FILE__) + '/http/http.raw.dump')
uri = 'file://'+file
\ No newline at end of file