Sha256: 1ffba7765bd909d9ac4ce41613a30c1c2204906a44b3795c3b89bc178c669a12
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Dataset do describe "#code" do before(:all){ Quandl::Client.token = ENV['QUANDL_AUTH_TOKEN'] } let(:source){ create(:source) } let(:dataset){ create(:dataset, source_code: source.code ) } let(:invalid_dataset){ create(:dataset, source_code: source.code, code: dataset.code ) } subject{ invalid_dataset } it "should create the dataset" do dataset.status.should eq 201 end its(:saved?){ should be_false } its(:status){ should eq 422 } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quandl_client-0.1.16 | spec/quandl/client/dataset/validation_spec.rb |
quandl_client-0.1.15 | spec/quandl/client/dataset/validation_spec.rb |