mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-20 20:28:03 -05:00
Specs surely don't pass, but they run at least!
This commit is contained in:
@@ -1 +1,10 @@
|
||||
require 'rails/test_help'
|
||||
|
||||
DataMapper.auto_migrate!
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
setup do
|
||||
User.all.destroy!
|
||||
Admin.all.destroy!
|
||||
end
|
||||
end
|
||||
|
||||
2
test/rails_app/app/data_mapper/shim.rb
Normal file
2
test/rails_app/app/data_mapper/shim.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module Shim
|
||||
end
|
||||
@@ -1,6 +1,9 @@
|
||||
class User
|
||||
include DataMapper::Resource
|
||||
|
||||
|
||||
extend Devise::Orm::DataMapper::Schema
|
||||
include Devise::Orm::DataMapper::Compatibility
|
||||
|
||||
property :id, Serial
|
||||
property :username, String
|
||||
|
||||
|
||||
Reference in New Issue
Block a user