Sha256: 21a7c24958a1a91de520a3ddf570f5b93a81f630862017cf03cfb9b6d4e22b97

Contents?: true

Size: 654 Bytes

Versions: 4

Compression:

Stored size: 654 Bytes

Contents

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join('spec/support/**/*.rb')].each {|f| require f}

RSpec.configure do |config|
  config.mock_with :rspec
  
  config.extend ControllerMacros, type: :controller
  config.include FactoryBot::Syntax::Methods
  config.include Devise::TestHelpers, type: :controller
  config.include MailerMacros
  config.before(:each) { reset_email }

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.8.3 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.8.2 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.8.1 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.8.0 lib/generators/ab_admin/install/templates/spec/spec_helper.rb