Sha256: ad6ab596bd16ffd46ce55035aa52596d6070f06bc9e8c88a19b827ab7acae605

Contents?: true

Size: 1.02 KB

Versions: 14

Compression:

Stored size: 1.02 KB

Contents

ENV["RAILS_ENV"] ||= 'test'

# Required modules
require 'rails/all'
require 'devise'
require 'devise/token_authenticatable'
require 'rspec/rails'
require 'timecop'
require 'pry'

# Required spec helper files
require 'support/rails_app/config/environment'
require 'support/helpers'
require 'support/integration'
require 'support/session_helper'

# factory_girl_rails has to be required after the test rails app
# as it sets the right application root path
require 'factory_girl_rails'

# Do not show migration output
ActiveRecord::Migration.verbose = false

# RSpec configuration
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.use_transactional_fixtures       = true
  config.run_all_when_everything_filtered = true

  config.include FactoryGirl::Syntax::Methods

  config.infer_spec_type_from_file_location!

  config.before(:suite) do
    # Do initial migration
    ActiveRecord::Migrator.migrate(File.expand_path("support/rails_app/db/migrate/", File.dirname(__FILE__)))
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
devise-token_authenticatable-1.1.0 spec/spec_helper.rb
devise-token_authenticatable-1.0.2 spec/spec_helper.rb
devise-token_authenticatable-1.0.1 spec/spec_helper.rb
devise-token_authenticatable-1.0.0 spec/spec_helper.rb
devise-token_authenticatable-0.5.3 spec/spec_helper.rb
devise-token_authenticatable-0.5.2 spec/spec_helper.rb
devise-token_authenticatable-0.5.1 spec/spec_helper.rb
devise-token_authenticatable-0.4.10 spec/spec_helper.rb
devise-token_authenticatable-0.5.0 spec/spec_helper.rb
devise-token_authenticatable-0.4.9 spec/spec_helper.rb
devise-token_authenticatable-0.4.6 spec/spec_helper.rb
devise-token_authenticatable-0.4.0 spec/spec_helper.rb
devise-token_authenticatable-0.3.2 spec/spec_helper.rb
devise-token_authenticatable-0.3.1 spec/spec_helper.rb