Sha256: 551112dd76ce714ce6ccca56143c6124186c8933279400fdeea05190fe420a72
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
require 'spec_helper' require 'fixtures/models' module CanTango::Ability class Base def calculate_rules can :edit, Project end end end describe CanTango::Ability::Base do before do @user = User.new 'krisy', 'krisy@gmail.com' end subject { CanTango::Ability::Base.new @user } specify { subject.should be_allowed_to(:edit, Project) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cantango-core-0.1.5 | spec/cantango/ability/base_spec.rb |
cantango-core-0.1.4 | spec/cantango/ability/base_spec.rb |