Sha256: e9546954fb4f3282809854fd312e1b42216089b8182fce008a060d5eaec1f27a

Contents?: true

Size: 820 Bytes

Versions: 8

Compression:

Stored size: 820 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

8 entries across 8 versions & 1 rubygems

Version Path
quandl_format-0.4.3 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.4.2 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.4.1 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.4.0 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.3.0 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.8 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.7 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.2.6 spec/lib/quandl/client/dataset_spec.rb