Sha256: bb6f8dfe0a8bd0e597aaec389eed60df921b4ab07141c8f85dd9354c9fb28117
Contents?: true
Size: 1.7 KB
Versions: 1
Compression:
Stored size: 1.7 KB
Contents
ENV["RAILS_ENV"] = "test" require File.join(File.dirname(__FILE__), 'rails_app', 'config', 'environment') require 'test_help' require 'mocha' require 'webrat' require File.join(File.dirname(__FILE__), '..', 'lib', 'devise', 'models', 'invitable') require File.join(File.dirname(__FILE__), '..', 'lib', 'devise', 'controllers', 'url_helpers') require File.join(File.dirname(__FILE__), '..', 'lib', 'devise', 'controllers', 'filters') ActionView::Base.send :include, Devise::Controllers::UrlHelpers path = File.join(File.dirname(__FILE__), '..', 'app', 'views') ActionController::Base.view_paths << path DeviseMailer.view_paths << path ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = 'test.com' ActiveRecord::Migration.verbose = false ActiveRecord::Base.logger = Logger.new(nil) ActiveRecord::Schema.define(:version => 1) do create_table :users do |t| t.authenticatable :null => true t.string :username t.confirmable t.invitable t.timestamps end end class User devise :invitable end ActionController::Routing::Routes.draw do |map| map.devise_for :users end require File.join(File.dirname(__FILE__), '..', 'app', 'controllers', 'invitations_controller') InvitationsController.send :include, Devise::Controllers::Filters Webrat.configure do |config| config.mode = :rails config.open_error_files = false end class ActiveSupport::TestCase self.use_transactional_fixtures = true self.use_instantiated_fixtures = false def assert_not(assertion, message = nil) assert !assertion, message end def assert_not_blank(assertion) assert !assertion.blank? end alias :assert_present :assert_not_blank end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise_invitable-0.2.0 | test/test_helper.rb |