Sha256: 7a6ee03f859a9a044489045393afc9c6c538b1c4bd978529e42aa8834592c62a
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
require_relative './support/spec_helper' require_relative '../for_gnuplot' describe ForGnuplot do let (:data_item) { JSON.parse <<-EOS { "date": "2009", "decimal": "0", "value": "1621661507655.08", "country": { "value": "Brazil", "id": "BR" }, "indicator": { "value": "GDP (current US$)", "id": "NY.GDP.MKTP.CD" } } EOS } it "prints a line with the country, date and value" do subject.invoke(data_item).should == "BR\t2009\t1621661507655.08" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-dextras-0.4.0 | doc/samples/worldbank/spec/for_gnuplot_spec.rb |
em-dextras-0.3.0 | doc/samples/worldbank/spec/for_gnuplot_spec.rb |