cancan/spec/spec_helper.rb

24 lines
374 B
Ruby
Raw Normal View History

2009-11-16 22:28:52 +00:00
require 'rubygems'
require 'spec'
require 'active_support'
require 'active_record'
require 'action_controller'
require 'action_view'
2010-04-13 12:59:50 +00:00
require 'cancan'
2010-04-13 13:02:39 +00:00
require 'cancan/matchers'
2009-11-16 22:28:52 +00:00
Spec::Runner.configure do |config|
config.mock_with :rr
end
class Ability
include CanCan::Ability
2010-05-21 20:41:24 +00:00
def initialize(user)
end
end
# this class helps out in testing nesting
class Person
end