Sha256: 7efab9c574464f845b3db18c670156dfdc466abc12d067c60f4debd86d033396

Contents?: true

Size: 715 Bytes

Versions: 11

Compression:

Stored size: 715 Bytes

Contents

require 'rubygems'

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rollbar-0.10.1 spec/spec_helper.rb
rollbar-0.10.0 spec/spec_helper.rb
rollbar-0.9.14 spec/spec_helper.rb
rollbar-0.9.13 spec/spec_helper.rb
rollbar-0.9.12 spec/spec_helper.rb
rollbar-0.9.11 spec/spec_helper.rb
rollbar-0.9.10 spec/spec_helper.rb
rollbar-0.9.9 spec/spec_helper.rb
rollbar-0.9.8 spec/spec_helper.rb
rollbar-0.9.7 spec/spec_helper.rb
rollbar-0.9.6 spec/spec_helper.rb