Sha256: 87ee2336f98089aaec32384fd3029418743fbd6ca0bf112b89ed34d6ec46ab6b
Contents?: true
Size: 548 Bytes
Versions: 5
Compression:
Stored size: 548 Bytes
Contents
require 'spec_helper' describe Graphite::RawParser do artifact = open("spec/data/test.dat").read nanPayload = open("spec/data/nan.dat").read describe '.parse' do it "handles graphite data" do data = Graphite::RawParser.parse(artifact) data.length.should == 3 end it "handles NaN in graphite data" do data = Graphite::RawParser.parse(nanPayload) data.length.should === 3 end it "handles no data" do data = Graphite::RawParser.parse("") data.length.should === 0 end end end
Version data entries
5 entries across 5 versions & 1 rubygems