spec/lib/quandl/client/dataset/source_spec.rb in quandl_client-2.8.0 vs spec/lib/quandl/client/dataset/source_spec.rb in quandl_client-2.9.0
- old
+ new
@@ -22,11 +22,11 @@
end
context "normal user" do
# behave as a user
- before(:all){ Quandl::Client.token = ENV['QUANDL_TEST_TOKEN'] }
+ before(:all){ Quandl::Client.token = Spec::Config::Quandl.user_token }
its(:saved?){ should be_true }
its(:source_code){ should be_present }
it "should find the source" do
@@ -39,9 +39,9 @@
subject.save
}
its(:status){ should be 422 }
end
- after(:all){ Quandl::Client.token = ENV['QUANDL_AUTH_TOKEN'] }
+ after(:all){ Quandl::Client.token = Spec::Config::Quandl.token}
end
end