Sha256: 299f6de125822f1a05e7e5f914a060034f6db041e06f7d63f1dfed7f5b49c034
Contents?: true
Size: 560 Bytes
Versions: 25
Compression:
Stored size: 560 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Dataset do describe "#code" do before(:all){ Quandl::Client.token = ENV['QUANDL_AUTH_TOKEN'] } let(:dataset){ create(:dataset, source_code: "QUANDL_CLIENT_TEST_SOURCE" ) } let(:invalid_dataset){ create(:dataset, source_code: "QUANDL_CLIENT_TEST_SOURCE", 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
25 entries across 25 versions & 1 rubygems