Sha256: 1b7043e0ad38d11af75ced530cc19ef977fe4a680452bf4147f5e4b525d907c0
Contents?: true
Size: 1.64 KB
Versions: 26
Compression:
Stored size: 1.64 KB
Contents
$: << File.join(File.dirname(__FILE__), '..', '..', 'lib' ) # 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' require 'timecop' # require 'simplecov' # SimpleCov.root File.join(File.dirname(__FILE__), "..", "..", "rails3" ) # SimpleCov.start do # add_filter "/config/" # # add_group 'Controllers', 'app/controllers' # add_group 'Models', 'app/models' # add_group 'Helpers', 'app/helpers' # add_group 'Libraries', 'lib' # add_group 'Plugins', 'vendor/plugins' # add_group 'Migrations', 'db/migrate' # end # 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.include RSpec::Rails::ControllerExampleGroup, :example_group => { :file_path => /controller(.)*_spec.rb$/ } # == Mock Framework # # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: # # config.mock_with :mocha # config.mock_with :flexmock # config.mock_with :rr config.mock_with :rspec end #---------------------------------------------------------------- # needed when running individual specs require File.join(File.dirname(__FILE__), '..','app','models','user') require File.join(File.dirname(__FILE__), '..','app','models','authentication') class TestUser include Mongoid::Document authenticates_with_sorcery! end class TestMailer < ActionMailer::Base end include ::Sorcery::TestHelpers::Internal include ::Sorcery::TestHelpers::Internal::Rails
Version data entries
26 entries across 26 versions & 1 rubygems