Sha256: eab5bd31ac165c1dd2cbaa7ebae8c53f442886769297622170b835ddeb4e46df

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require 'spec_helper'

describe Cancannible do
  let(:grantee_class) { Member }
  let(:grantee) { grantee_class.create! }

  describe "#get_cached_abilities" do
    let(:flag) { nil }
    before do
      Cancannible.get_cached_abilities = proc{|user| puts "get_cached_abilities" }
    end
    subject { grantee.abilities }
    it "should call" do
      subject
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cancannible-2.1.0 spec/unit/config_spec.rb
cancannible-2.0.0 spec/unit/config_spec.rb