Sha256: f5389495bee5e443c3e6b4b3c9424ca37e07b41afe8fa9328bd9e4ab68f2667b

Contents?: true

Size: 822 Bytes

Versions: 13

Compression:

Stored size: 822 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Quandl::Client::Dataset do
  
  let(:attributes) { {
    code:             'DATASET_CODE_2',
    source_code:      'SOURCE_CODE',
    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

13 entries across 13 versions & 1 rubygems

Version Path
quandl_format-0.2.5 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.4 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.3 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.2 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.1 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.0 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.8 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.7 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.6 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.5 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.4 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.3 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.2 spec/lib/quandl/client/dataset_spec.rb