Sha256: 3f7a86f95f139dfbcb137540972659f3fb5f80313abd243f75b6b37544c5b1f1

Contents?: true

Size: 744 Bytes

Versions: 10

Compression:

Stored size: 744 Bytes

Contents

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

require "rails-app/config/environment"
require 'rspec/rails'
require 'devise-authy'
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__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner[:active_record].strategy = :truncation
  end

  config.before :each do
    DatabaseCleaner.start
  end

  config.after :each do
    DatabaseCleaner.clean
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
devise-authy-1.7.0 spec/spec_helper.rb
devise-authy-1.6.0 spec/spec_helper.rb
devise-authy-1.5.3 spec/spec_helper.rb
devise-authy-1.5.2 spec/spec_helper.rb
devise-authy-1.5.1 spec/spec_helper.rb
devise-authy-1.5.0 spec/spec_helper.rb
devise-authy-1.4.0 spec/spec_helper.rb
devise-authy-1.3.0 spec/spec_helper.rb
devise-authy-1.2.2 spec/spec_helper.rb
devise-authy-1.2.1 spec/spec_helper.rb