Sha256: 037b37e0f7f6697c1d03aa4e6cd7af77fccfef7ebd9999df41ddd23d3145254b

Contents?: true

Size: 661 Bytes

Versions: 7

Compression:

Stored size: 661 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 FactoryGirl::Syntax::Methods
  config.include Devise::TestHelpers, :type => :controller
  config.include MailerMacros
  config.before(:each) { reset_email }

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.2.2 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.2.1 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.2.0 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.1.2 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.1.1 lib/generators/ab_admin/install/templates/spec/spec_helper.rb
ab_admin-0.1.0 lib/generators/ab_admin/install/templates/spec/spec_helper.rb