Sha256: d56981151a6295fe6cf0190c02eaebc96e8134d4a71bb97f2adf4bb8b4f229ba

Contents?: true

Size: 891 Bytes

Versions: 8

Compression:

Stored size: 891 Bytes

Contents

require 'bundler'
require 'rubygems'
require 'buff/ruby_engine'

def setup_rspec
  require 'rspec'
  require 'webmock/rspec'

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

  RSpec.configure do |config|
    config.include Ridley::SpecHelpers

    config.before(:suite) do
      WebMock.disable_net_connect!(allow_localhost: true, net_http_connect_on_start: true)
    end

    config.filter_run focus: true
    config.run_all_when_everything_filtered = true

    config.before(:all) { Ridley.logger = Celluloid.logger = nil }

    config.before(:each) do
      Celluloid.shutdown
      Celluloid.boot
    end
  end
end

if Buff::RubyEngine.mri? && ENV['CI'] != 'true'
  require 'spork'

  Spork.prefork do
    setup_rspec
  end

  Spork.each_run do
    require 'ridley-connectors'
  end
else
  require 'ridley-connectors'
  setup_rspec
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ridley-connectors-2.4.0 spec/spec_helper.rb
ridley-connectors-2.3.1 spec/spec_helper.rb
ridley-connectors-2.3.0 spec/spec_helper.rb
ridley-connectors-2.2.0 spec/spec_helper.rb
ridley-connectors-2.1.2 spec/spec_helper.rb
ridley-connectors-2.1.1 spec/spec_helper.rb
ridley-connectors-2.1.0 spec/spec_helper.rb
ridley-connectors-2.0.1 spec/spec_helper.rb