spec/parsing/chunked_spec.rb in yajl-ruby-1.2.0 vs spec/parsing/chunked_spec.rb in yajl-ruby-1.2.1

- old
+ new

@@ -65,11 +65,11 @@ path = File.expand_path(File.dirname(__FILE__) + '/../../benchmark/subjects/twitter_stream.json') json = File.new(path, 'r') @callback.should_receive(:call).exactly(430).times lambda { @parser.parse(json) - }.should_not raise_error(Yajl::ParseError) + }.should_not raise_error end it "should parse twitter_stream.json and fire callback 430 times, with a block as the callback" do path = File.expand_path(File.dirname(__FILE__) + '/../../benchmark/subjects/twitter_stream.json') json = File.new(path, 'r') @@ -79,11 +79,11 @@ times = 0 @parser.parse(json) do |hsh| times += 1 end times.should eql(430) - }.should_not raise_error(Yajl::ParseError) + }.should_not raise_error end it "should raise a Yajl::ParseError error if multiple JSON strings were found when no on_parse_complete callback assigned" do path = File.expand_path(File.dirname(__FILE__) + '/../../benchmark/subjects/twitter_stream.json') json = File.new(path, 'r') @@ -91,6 +91,6 @@ @callback.should_receive(:call).exactly(0).times lambda { @parser.parse(json) }.should raise_error(Yajl::ParseError) end -end \ No newline at end of file +end