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

Version Path
rearview-1.2.3-jruby spec/lib/graphite/raw_parser.rb
rearview-1.2.2.rc.2-jruby spec/lib/graphite/raw_parser.rb
rearview-1.2.2.rc.1-jruby spec/lib/graphite/raw_parser.rb
rearview-1.2.1-jruby spec/lib/graphite/raw_parser.rb
rearview-1.2.0-jruby spec/lib/graphite/raw_parser.rb