Sha256: 6ed06a605b2e91ded58c4650dc844a3877c158a8f4253cf411e650c01e0b1ffb
Contents?: true
Size: 615 Bytes
Versions: 9
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' require 'fixtures/models' module CanTango::Ability class MyExecutor include CanTango::Ability::Executor end end describe CanTango::Ability::Executor do before do @user = User.new 'krisy', 'krisy@gmail.com' @ability = CanTango::Ability::Base.new @user end subject { CanTango::Ability::MyExecutor.new @ability } describe 'calculate_rules by default returns rules' do specify do subject.calculate_rules.should == [] end end describe 'execute by default calls calculate_rules' do specify do subject.execute.should == [] end end end
Version data entries
9 entries across 9 versions & 1 rubygems