Sha256: c193937cd979a7a979356b157922ac7c98da67822a90fbdb1f9d03c9ecfca6cc

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Dataset do
  
  before(:all){ Quandl::Client.token = AUTH_TOKEN }

  let(:source){ create(:source) }
  let(:dataset){ create(:dataset, source_code: source.code ) }
  
  it "should find the dataset by id" do
    Dataset.find(dataset.id).id.should eq dataset.id
  end
  
  it "should find the dataset by full code" do
    Dataset.find(dataset.full_code).id.should eq dataset.id
  end
  
  it "should exclude_data" do
    Dataset.exclude_data(true).find(dataset.id).data.should be_blank
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quandl_client-0.1.10 spec/quandl/client/models/dataset/search_spec.rb
quandl_client-0.1.9 spec/quandl/client/models/dataset/search_spec.rb
quandl_client-0.1.8 spec/quandl/client/models/dataset/search_spec.rb