Sha256: 3400b3300d289379f80f154c602917457bb993dc12d04375a2238e211b9ea38d

Contents?: true

Size: 888 Bytes

Versions: 33

Compression:

Stored size: 888 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.up
require 'authpwn_rails/generators/templates/002_create_facebook_tokens.rb'
CreateFacebookTokens.up

require 'authpwn_rails/generators/templates/facebook_token.rb'
require 'authpwn_rails/generators/templates/user.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

33 entries across 33 versions & 1 rubygems

Version Path
authpwn_rails-0.9.6 test/helpers/db_setup.rb
authpwn_rails-0.9.5 test/helpers/db_setup.rb
authpwn_rails-0.9.4 test/helpers/db_setup.rb
authpwn_rails-0.9.3 test/helpers/db_setup.rb
authpwn_rails-0.9.2 test/helpers/db_setup.rb
authpwn_rails-0.9.1 test/helpers/db_setup.rb
authpwn_rails-0.9.0 test/helpers/db_setup.rb
authpwn_rails-0.8.3 test/helpers/db_setup.rb
authpwn_rails-0.8.2 test/helpers/db_setup.rb
authpwn_rails-0.8.1 test/helpers/db_setup.rb
authpwn_rails-0.8.0 test/helpers/db_setup.rb
authpwn_rails-0.7.5 test/helpers/db_setup.rb
authpwn_rails-0.7.4 test/helpers/db_setup.rb
authpwn_rails-0.7.3 test/helpers/db_setup.rb
authpwn_rails-0.7.2 test/helpers/db_setup.rb
authpwn_rails-0.7.1 test/helpers/db_setup.rb
authpwn_rails-0.7.0 test/helpers/db_setup.rb
authpwn_rails-0.6.0 test/helpers/db_setup.rb
authpwn_rails-0.5.6 test/helpers/db_setup.rb
authpwn_rails-0.5.5 test/helpers/db_setup.rb