Sha256: 094e4a7959a59480846da1a7c6ede7c5dc1a9b7018587e6755a21c0d6bf9a95e
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 Bytes
Contents
#$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'rspec' require 'lumberg' require 'lumberg/exceptions' require 'vcr' require 'timeout' # Load supporting files in spec/support Dir["#{Lumberg::base_path}/../spec/support/**/*.rb"].each do |f| require f end VCR.configure do |c| c.cassette_library_dir = 'spec/vcr_cassettes' c.hook_into :webmock c.default_cassette_options = {:record => :none, :serialize_with => :syck} end def live_test? !ENV['WHM_REAL'].nil? end def requires_attr(attr, &block) expect { block.call }.to raise_error(Lumberg::WhmArgumentError, /Missing required parameter: #{attr}/i) end RSpec.configure do |c| c.extend VCR::RSpec::Macros c.before(:each) do if live_test? @whm_hash = ENV['WHM_HASH'].dup @whm_host = ENV['WHM_HOST'].dup else @whm_hash = 'iscool' @whm_host = 'myhost.com' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lumberg-2.0.0.pre4 | spec/spec_helper.rb |
lumberg-2.0.0.pre3 | spec/spec_helper.rb |