Sha256: 8b20a3733e2a643120844de0da60d208930bfad394d48342cb463ee20de2b01d

Contents?: true

Size: 467 Bytes

Versions: 47

Compression:

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

47 entries across 47 versions & 1 rubygems

Version Path
quandl_client-2.1.4 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.1.3 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.1.2 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.1.1 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.1.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.0.1 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.0.0 spec/lib/quandl/client/dataset/search_spec.rb