Sha256: 4b90fe746a5126699c907d44f2d048c62a2e98c06c6dbbb3a9afe802941ab899

Contents?: true

Size: 693 Bytes

Versions: 8

Compression:

Stored size: 693 Bytes

Contents

# Configure Rails envinronment
ENV["RAILS_ENV"] = "test"

require "rails/all"
require "rspec/rails"
require 'database_cleaner'
require "mini_auth"

# Pull in the fake rails app
require 'fake_app'

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

# Configure RSpec
RSpec.configure do |config|
  require 'rspec/expectations'
  config.include RSpec::Matchers
  config.mock_with :rspec
  
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation, :except => %w())
  end
  
  config.before(:each) do
    DatabaseCleaner.start
  end
  
  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mini_auth-1.0.0 spec/spec_helper.rb
mini_auth-1.0.0.rc spec/spec_helper.rb
mini_auth-0.3.2 spec/spec_helper.rb
mini_auth-0.3.1 spec/spec_helper.rb
mini_auth-0.3.0 spec/spec_helper.rb
mini_auth-0.3.0.beta3 spec/spec_helper.rb
mini_auth-0.3.0.beta2 spec/spec_helper.rb
mini_auth-0.3.0.beta spec/spec_helper.rb