Sha256: 2ab0b6fb7626e7a06830bde7a2491c2b0c3f3b62e2c6720b6ee9f0a2ee4617c6

Contents?: true

Size: 804 Bytes

Versions: 2

Compression:

Stored size: 804 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,
    display_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.1.1 spec/lib/quandl/client/dataset_spec.rb
quandl_format-0.1.0 spec/lib/quandl/client/dataset_spec.rb