Sha256: 7952c2cfb51cf77f3fe2fd28b497a4639ac424fa4df09b782e8a2bbf682ee66c
Contents?: true
Size: 534 Bytes
Versions: 4
Compression:
Stored size: 534 Bytes
Contents
require 'rubygems' require 'bundler/setup' Bundler.require(:default) require 'supermodel' # shouldn't Bundler do this already? require 'active_support/all' require 'matchers' require 'cancan/matchers' RSpec.configure do |config| config.mock_with :rr config.before(:each) do Project.delete_all Category.delete_all end end class Ability include CanCan::Ability def initialize(user) end end class Category < SuperModel::Base has_many :projects end class Project < SuperModel::Base belongs_to :category end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cancan-1.6.0 | spec/spec_helper.rb |
cancan-1.5.1 | spec/spec_helper.rb |
cancan-1.5.0 | spec/spec_helper.rb |
cancan-1.5.0.beta1 | spec/spec_helper.rb |