Sha256: 0cd3f8b4da65fb53697dea54b36c3d4fcc128e6ca30242e0113507e5fd2fced5
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Quandl::Format::Dataset do let(:attributes) { qdf_attributes } subject{ Quandl::Format::Dataset.new(attributes) } its(:code){ should eq 'DATASET_CODE_2' } its(:source_code){ should eq 'NSE' } its(:name){ should eq 'Test Dataset Name 2' } its(:description){ should eq "Here is a description with multiple lines.\n This is the second line." } its(:column_names){ should eq ['Date', 'Value', 'High', 'Low'] } its(:data){ should eq Quandl::Data.new([["2013-11-20", "9.99", "11.0", "14.0"], ["2013-11-19", "10.03", nil, "14.09"]]) } its(:attributes){ should eq attributes } its(:to_qdf){ should eq qdf_attributes_to_format } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quandl_format-0.5.1 | spec/lib/quandl/format/dataset_spec.rb |
quandl_format-0.5.0 | spec/lib/quandl/format/dataset_spec.rb |