Sha256: 0aef891c09f13ca576cda5eba2925f46cecacbaebec5ce6a0a6c587f17654a58

Contents?: true

Size: 828 Bytes

Versions: 5

Compression:

Stored size: 828 Bytes

Contents

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

require File.expand_path('../dummy/config/environment.rb',  __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl_rails'
require 'faker'

Rails.backtrace_cleaner.remove_silencers!

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

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = 'random'
end

FinePrint::ApplicationController.class_eval do
  include ApplicationHelper
end

def setup_controller_spec
  class_eval { include ApplicationHelper }
  routes { FinePrint::Engine.routes }
  sign_out
  @user = FactoryGirl.create(:dummy_user)
  @admin = FactoryGirl.create(:dummy_user)
  @admin.is_admin = true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fine_print-1.3.0 spec/spec_helper.rb~
fine_print-1.2.0 spec/spec_helper.rb~
fine_print-1.1.1 spec/spec_helper.rb~
fine_print-1.1.0 spec/spec_helper.rb~
fine_print-1.0.0 spec/spec_helper.rb~