spec/spec_helper.rb in pipeline_deals-0.1.0 vs spec/spec_helper.rb in pipeline_deals-0.3.0
- old
+ new
@@ -1,14 +1,22 @@
require 'rubygems'
require 'vcr'
require 'pipeline_deals'
-require 'pry'
-require 'pipeline_deals/pagination_spec'
-require 'pipeline_deals/has_documents'
-require 'pipeline_deals/has_people'
+begin
+ require 'pry'
+rescue LoadError
+end
-PipelineDeals::Resource.site = "http://localhost:3000"
+require 'support/pagination_spec'
+require 'support/has_documents'
+require 'support/has_notes'
+require 'support/has_calendar_entries'
+require 'support/has_people'
+require 'support/has_deals'
+
+PipelineDeals::Resource.site = ENV['PIPELINEDEALS_URL'] || "http://localhost:3000"
+PipelineDeals.api_key = ENV['PIPELINEDEALS_API_KEY'] || 'iJHyFkMUBSfjUovt29'
#ActiveResource::Base.logger = Logger.new(STDOUT)
VCR.configure do |c|
c.cassette_library_dir = './spec/cassettes'