Sha256: 267247c1f90e8e6270d449e015eaeee5d89a7cae29afe572b6723a6d2e777830

Contents?: true

Size: 895 Bytes

Versions: 10

Compression:

Stored size: 895 Bytes

Contents

ActiveRecord::Base.establish_connection :adapter => 'sqlite3',
                                        :database => ':memory:'
ActiveRecord::Base.configurations = true

ActiveRecord::Migration.verbose = false
require 'authpwn_rails/generators/templates/001_create_users.rb'
CreateUsers.migrate :up
require 'authpwn_rails/generators/templates/003_create_credentials.rb'
CreateCredentials.migrate :up

require 'authpwn_rails/generators/templates/user.rb'
require 'authpwn_rails/generators/templates/credential.rb'

# :nodoc: open TestCase to setup fixtures
class ActiveSupport::TestCase
  include ActiveRecord::TestFixtures
  
  self.fixture_path =
      File.expand_path '../../../lib/authpwn_rails/generators/templates',
                       __FILE__
  
  self.use_transactional_fixtures = false
  self.use_instantiated_fixtures  = false
  self.pre_loaded_fixtures = false
  fixtures :all
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authpwn_rails-0.10.10 test/helpers/db_setup.rb
authpwn_rails-0.10.9 test/helpers/db_setup.rb
authpwn_rails-0.10.8 test/helpers/db_setup.rb
authpwn_rails-0.10.7 test/helpers/db_setup.rb
authpwn_rails-0.10.6 test/helpers/db_setup.rb
authpwn_rails-0.10.5 test/helpers/db_setup.rb
authpwn_rails-0.10.4 test/helpers/db_setup.rb
authpwn_rails-0.10.3 test/helpers/db_setup.rb
authpwn_rails-0.10.2 test/helpers/db_setup.rb
authpwn_rails-0.10.1 test/helpers/db_setup.rb