Sha256: f8d62f4a4f029e635402f892ace86e4211721cc4c622804e8303698c4709ec5a
Contents?: true
Size: 812 Bytes
Versions: 2
Compression:
Stored size: 812 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Quandl::Client::Dataset do let(:attributes) { { code: 'DATASET_CODE_2', source_code: 'NSE', name: 'Test Dataset Name 2', description: "Here is a description with multiple lines.\n This is the second line.", column_names: ['Date', 'Value', 'High', 'Low'], private: false, reference_url: 'http://test.com/', data: [["2013-11-20", "9.99470588235294", "11.003235294117646", "14.00164705882353"], ["2013-11-19", "10.039388096885814", nil, "14.09718770934256"]], }} subject{ Quandl::Client::Dataset.new( attributes ) } it{ should respond_to :to_qdf } its(:to_qdf){ should eq Quandl::Format::Dataset.new(attributes).to_qdf } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quandl_format-0.5.1 | spec/lib/quandl/client/dataset_spec.rb |
quandl_format-0.5.0 | spec/lib/quandl/client/dataset_spec.rb |