Sha256: e2190e8628b4205f84ccbf05800178fba0c3ffec02b3d8393bb4d099b884861e

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Dataset do

  let(:dataset){ create(:dataset, source_code: "QUANDL_CLIENT_TEST_SOURCE" ) }
  
  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.find(dataset.id).attributes[:data].should be_blank
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quandl_client-2.7.11 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.5 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.4 spec/lib/quandl/client/dataset/search_spec.rb