spec/support/adapters/mongoid.rb in rolify-3.3.0.rc3 vs spec/support/adapters/mongoid.rb in rolify-3.3.0.rc4

- old
+ new

@@ -1,13 +1,9 @@ require 'mongoid' Mongoid.load!("spec/support/adapters/mongoid.yml", :test) -RSpec.configure do |config| - config.include Mongoid::Matchers -end - ::Mongoid::Document.module_eval do def self.included(base) base.extend Rolify end end @@ -135,5 +131,13 @@ def subgroups Group.in(:parent_id => _id) end end + +class Team + include Mongoid::Document + #resourcify done during specs setup to be able to use custom user classes + + field :team_code, :type => Integer + field :name, :type => String +end \ No newline at end of file