2009-11-16 22:28:52 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'spec'
|
|
|
|
require 'active_support'
|
|
|
|
require 'active_record'
|
|
|
|
require 'action_controller'
|
|
|
|
require 'action_view'
|
|
|
|
require File.dirname(__FILE__) + '/../lib/cancan.rb'
|
|
|
|
|
|
|
|
Spec::Runner.configure do |config|
|
|
|
|
config.mock_with :rr
|
|
|
|
end
|
2009-11-26 17:29:53 +00:00
|
|
|
|
|
|
|
class Ability
|
|
|
|
include CanCan::Ability
|
|
|
|
|
|
|
|
def initialize(user)
|
|
|
|
end
|
|
|
|
end
|
2009-12-13 19:39:02 +00:00
|
|
|
|
|
|
|
# this class helps out in testing nesting
|
|
|
|
class Person
|
|
|
|
end
|