Sha256: 5886841279493afe4b201fc089d3bd03a4a1a7b51dca62712cbc6624765b359a

Contents?: true

Size: 1.1 KB

Versions: 23

Compression:

Stored size: 1.1 KB

Contents

Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
ENV['RACK_ENV'] ||= 'test'
require 'pry'
require 'active_record'
require 'shoulda-matchers'
require 'rack'
require 'logger'
require_relative './unit/agile_proxy/api/common_helper'
require_relative './common_helper'
require_relative '../lib/agile_proxy'
environment = 'test'
dbconfig    = YAML.load(File.read(AgileProxy.config.database_config_file))
ActiveRecord::Base.establish_connection dbconfig[environment]

AgileProxy.configure do |config|
  config.logger = Logger.new(File.expand_path('../../log/test.log', __FILE__))
end

RSpec.configure do |config|
  include AgileProxy::TestServer
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'

  config.before :all do
    start_test_servers
  end

  config.after :each do
    AgileProxy.config.reset
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
  end
  config.include AgileProxy::Test::Api::Common, api_test: true
  config.include AgileProxy::Test::Common
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
agile-proxy-0.1.26 spec/spec_helper.rb
agile-proxy-jruby-0.1.26-jruby spec/spec_helper.rb
agile-proxy-jruby-0.1.25-jruby spec/spec_helper.rb
agile-proxy-0.1.25 spec/spec_helper.rb
agile-proxy-0.1.24 spec/spec_helper.rb
agile-proxy-0.1.23 spec/spec_helper.rb
agile-proxy-0.1.22 spec/spec_helper.rb
agile-proxy-0.1.21 spec/spec_helper.rb
agile-proxy-0.1.20 spec/spec_helper.rb
agile-proxy-0.1.19 spec/spec_helper.rb
agile-proxy-0.1.18 spec/spec_helper.rb
agile-proxy-0.1.13 spec/spec_helper.rb
agile-proxy-0.1.12 spec/spec_helper.rb
agile-proxy-0.1.11 spec/spec_helper.rb
agile-proxy-0.1.10 spec/spec_helper.rb
agile-proxy-0.1.9 spec/spec_helper.rb
agile-proxy-0.1.8 spec/spec_helper.rb
agile-proxy-0.1.7 spec/spec_helper.rb
agile-proxy-0.1.6 spec/spec_helper.rb
agile-proxy-0.1.5 spec/spec_helper.rb