Sha256: 86883bd3f387c0fbbb7028640c71c8959f3c05ca2b1df610241a517d60534631

Contents?: true

Size: 1015 Bytes

Versions: 9

Compression:

Stored size: 1015 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require File.join(File.dirname(__FILE__), 'rails_app', 'config', 'environment')

require 'test_help'
require 'webrat'

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

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::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")

ActiveRecord::Schema.define(:version => 1) do
  [:users, :admins].each do |table|
    create_table table do |t|
      t.authenticatable :null => table == :admins

      if table == :users
        t.confirmable
        t.recoverable
        t.rememberable
      end

      t.timestamps
    end
  end
end

Webrat.configure do |config|
  config.mode = :rails
end

class ActiveSupport::TestCase
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
devise-0.5.0 test/test_helper.rb
shingara-devise-0.4.3.1 test/test_helper.rb
shingara-devise-0.4.3 test/test_helper.rb
devise-0.4.3 test/test_helper.rb
ramon-devise-0.4.2 test/test_helper.rb
devise-0.4.2 test/test_helper.rb
devise-0.4.1 test/test_helper.rb
devise-0.4.0 test/test_helper.rb
devise-0.3.0 test/test_helper.rb