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.13.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.12.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.11.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.10.2 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.10.1 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.10.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.9.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.8.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.12 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.9 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.8 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.7 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.6 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.3 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.2 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.1 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.7.0 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.6.2 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.6.1 spec/lib/quandl/client/dataset/search_spec.rb
quandl_client-2.6.0 spec/lib/quandl/client/dataset/search_spec.rb