Sha256: 3be0c3d8f9e2090be26132473e6b29b1d8de808743f48efc95b27198f11ba15c

Contents?: true

Size: 846 Bytes

Versions: 45

Compression:

Stored size: 846 Bytes

Contents

require 'rubygems'

ENV['RAILS_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.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
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

def reset_configuration
  Rollbar.reconfigure do |config|
  end
end

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

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
rollbar-1.0.1 spec/spec_helper.rb
rollbar-1.0.0 spec/spec_helper.rb
rollbar-0.13.2 spec/spec_helper.rb
rollbar-0.13.1 spec/spec_helper.rb
rollbar-0.13.0 spec/spec_helper.rb
rollbar-0.12.20 spec/spec_helper.rb
rollbar-0.12.19 spec/spec_helper.rb
rollbar-0.12.18 spec/spec_helper.rb
rollbar-0.12.17 spec/spec_helper.rb
rollbar-0.12.16 spec/spec_helper.rb
rollbar-0.12.15 spec/spec_helper.rb
rollbar-0.12.14 spec/spec_helper.rb
rollbar-0.12.13 spec/spec_helper.rb
rollbar-0.12.12 spec/spec_helper.rb
rollbar-0.12.11 spec/spec_helper.rb
rollbar-0.12.10 spec/spec_helper.rb
rollbar-0.12.9 spec/spec_helper.rb
rollbar-0.12.8 spec/spec_helper.rb
rollbar-0.12.7 spec/spec_helper.rb
rollbar-0.12.6 spec/spec_helper.rb