Sha256: bf5177ed88730928297844d020225bc1bd7d5ee416022edbd56a70d8d8687cfa

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

ENV['MOCK_ASSEMBLE'] ||= 'true'
ENV['RALLY_URL'] ||= "https://rally1.rallydev.com/slm/webservice/"

Bundler.require(:test, :default)

require File.expand_path("../../lib/assemble", __FILE__)

Dir[File.expand_path("../{shared,support}/*.rb", __FILE__)].each { |f| require(f) }

Cistern.formatter = Cistern::Formatter::AwesomePrint

if ENV['MOCK_ASSEMBLE'] == 'true'
  Assemble::Client.mock!
end

Assemble::Client::Mock.timeout       = 0
Assemble::Client::Mock.poll_interval = 0
Assemble::Client::Real.timeout       = 10

RSpec.configure do |config|
  config.filter_run_excluding(mock_only: true) unless ENV['MOCK_ASSEMBLE'] == "true"
  config.order = :random

  config.before(:each) do
    Assemble::Client.reset! if Assemble::Client.mocking?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
assemble-0.0.1 spec/spec_helper.rb