Sha256: c93dd9a4befec2836823423745e127a80f207524694fae3ec94ffa5ec29c8f15

Contents?: true

Size: 1.09 KB

Versions: 12

Compression:

Stored size: 1.09 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

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

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

RSpec.configure do |config|
  config.include(NotifierHelpers)
  config.include(FixtureHelpers)

  config.color_enabled = 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

def local?
  ENV['LOCAL'] == '1'
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rollbar-1.4.5 spec/spec_helper.rb
rollbar-1.4.4 spec/spec_helper.rb
rollbar-1.4.3 spec/spec_helper.rb
rollbar-1.4.2 spec/spec_helper.rb
rollbar-1.4.1 spec/spec_helper.rb
rollbar-1.4.0 spec/spec_helper.rb
rollbar-1.3.2 spec/spec_helper.rb
rollbar-1.3.1 spec/spec_helper.rb
rollbar-1.3.0 spec/spec_helper.rb
rollbar-1.2.13 spec/spec_helper.rb
rollbar-1.2.12 spec/spec_helper.rb
rollbar-1.2.11 spec/spec_helper.rb