Sha256: 9da8613b0bcdb25fd1625368a84c0377d87a83c7e4a9a2ca4c9debf705373792
Contents?: true
Size: 887 Bytes
Versions: 4
Compression:
Stored size: 887 Bytes
Contents
#$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'rspec' require 'lumberg' require 'lumberg/exceptions' require 'webmock/rspec' 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 } 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lumberg-2.0.0 | spec/spec_helper.rb |
lumberg-2.0.0.pre20 | spec/spec_helper.rb |
lumberg-2.0.0.pre18 | spec/spec_helper.rb |
lumberg-2.0.0.pre15 | spec/spec_helper.rb |