Sha256: 8e70ffe7fceb6c124ba5f4a293674c3fbe612a93fb3922359cac7ea3fbbc4e4d

Contents?: true

Size: 955 Bytes

Versions: 7

Compression:

Stored size: 955 Bytes

Contents

require 'rubygems'

require 'listen'
require 'listen/tcp'

def ci?
  ENV['CI']
end

if ci?
  require 'coveralls'
  Coveralls.wear!
end

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.order = :random
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true
  # config.fail_fast = !ci?
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_doubled_constant_names = true
    mocks.verify_partial_doubles = true
  end
end

require 'rspec/retry'
RSpec.configure do |config|
  config.default_retry_count = ci? ? 5 : 1
end

require 'celluloid/rspec'
Thread.abort_on_exception = true
Celluloid.logger.level = Logger::ERROR

RSpec.configuration.before(:each) do
  Celluloid.boot
end

RSpec.configuration.after(:each) do
  Celluloid.shutdown
end

Version data entries

7 entries across 5 versions & 3 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/listen-2.7.9/spec/spec_helper.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/listen-2.7.9/spec/spec_helper.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/listen-2.7.9/spec/spec_helper.rb
listen-2.7.11 spec/spec_helper.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/listen-2.7.9/spec/spec_helper.rb
listen-2.7.9 spec/spec_helper.rb
listen-2.7.8 spec/spec_helper.rb