Sha256: 9f3305b1099bab94d1bdee9dc9ab71334f18509095ffac98ef5dd5b5f9d0deff

Contents?: true

Size: 801 Bytes

Versions: 6

Compression:

Stored size: 801 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require "safeguard-devise-test-app/config/environment"
require 'rspec/rails'
require 'safeguard-devise'
require 'orm/active_record'
require 'capybara/rails'
require 'capybara/rspec'
require 'database_cleaner'



# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/tests_helper/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner[:active_record].strategy = :truncation
  end
  config.include Capybara::DSL
  config.before :each do
    DatabaseCleaner.start
  end

  config.after :each do
    DatabaseCleaner.clean
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
safeguard-devise-0.0.7 spec/spec_helper.rb
safeguard-devise-0.0.6 spec/spec_helper.rb
safeguard-devise-0.0.5 spec/spec_helper.rb
safeguard-devise-0.0.4 spec/spec_helper.rb
safeguard-devise-0.0.3 spec/spec_helper.rb
safeguard-devise-0.0.2 spec/spec_helper.rb