Sha256: 5b9605f9629bfa525c87b74b7f5a3a8ddea7a2b6f1e83c2010ad70d50ffaad4a

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 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.exclude_data(true).find(dataset.id).data.should be_blank
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quandl_client-0.1.17 spec/lib/quandl/client/dataset/search_spec.rb