Sha256: ac2e03f685212cdd9e0bc6c5819419acebf65ab571bcdbb6915e005addbba3d0

Contents?: true

Size: 1.27 KB

Versions: 11

Compression:

Stored size: 1.27 KB

Contents

require 'rubygems'

ENV['RAILS_ENV'] = ENV['RACK_ENV'] = 'test'
require File.expand_path('../dummyapp/config/environment', __FILE__)
require 'rspec/rails'
require 'database_cleaner'
require 'genspec'

namespace :dummy do
  load 'spec/dummyapp/Rakefile'
end

if ENV['TRAVIS_JDK_VERSION'] == 'oraclejdk7'
  require 'rollbar/configuration'
  Rollbar::Configuration::DEFAULT_ENDPOINT = 'https://api-alt.rollbar.com/api/1/item/'
end

Rake::Task['dummy:db:setup'].invoke

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

RSpec.configure do |config|
  config.extend(Helpers)
  config.include(NotifierHelpers)
  config.include(FixtureHelpers)
  config.include(EncodingHelpers)

  config.color = true
  config.formatter = 'documentation'

  config.use_transactional_fixtures = true
  config.order = "random"

  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
  end

  config.before(:each) do
    DatabaseCleaner.start
    DatabaseCleaner.clean
    Rollbar.reset_notifier!
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
  config.backtrace_exclusion_patterns = [/gems\/rspec-.*/]

  if ENV['SKIP_DUMMY_ROLLBAR'] == 'true'
    config.filter_run(:skip_dummy_rollbar => true)
  else
    config.filter_run_excluding(:skip_dummy_rollbar => true)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rollbar-2.7.1 spec/spec_helper.rb
rollbar-2.7.0 spec/spec_helper.rb
rollbar-2.6.3 spec/spec_helper.rb
rollbar-2.6.2 spec/spec_helper.rb
rollbar-2.6.1 spec/spec_helper.rb
rollbar-2.6.0 spec/spec_helper.rb
rollbar-2.5.2 spec/spec_helper.rb
rollbar-2.5.1 spec/spec_helper.rb
rollbar-2.5.0 spec/spec_helper.rb
rollbar-2.4.0 spec/spec_helper.rb
rollbar-2.3.0 spec/spec_helper.rb