Sha256: f1b03aa0b0be105eebd17f4d8dda2c224c4574d33b60716365c83abf1db67a2a

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

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

SORCERY_ORM = :active_record

# require 'simplecov'
# SimpleCov.root File.join(File.dirname(__FILE__), '..', 'lib')
# SimpleCov.start

require 'rspec'

require 'rails/all'
require 'rspec/rails'
require 'timecop'

def setup_orm; end
def teardown_orm; end

require "orm/#{SORCERY_ORM}"

require "rails_app/config/environment"

class TestMailer < ActionMailer::Base;end

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

RSpec.configure do |config|
  config.include RSpec::Rails::ControllerExampleGroup, :file_path => /controller(.)*_spec.rb$/
  config.mock_with :rspec

  config.use_transactional_fixtures = true

  config.before(:suite) { setup_orm }
  config.after(:suite) { teardown_orm }
  config.before(:each) { ActionMailer::Base.deliveries.clear }

  config.include ::Sorcery::TestHelpers::Internal
  config.include ::Sorcery::TestHelpers::Internal::Rails
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
cbsorcery-0.8.6 spec/spec_helper.rb
cb-sorcery-0.8.6 spec/spec_helper.rb