Sha256: cf9473f56b19181ef8fe3ed9fad08f3f2f7d04d6dd514d20b6978e3bfb06008f

Contents?: true

Size: 279 Bytes

Versions: 8

Compression:

Stored size: 279 Bytes

Contents

require 'spec_helper'
require 'fixtures/models'

describe CanCan::Rule do
  subject { CanCan::Rule.new :read, User, 1, 2, 3 }

  describe 'block' do
    before do
      subject.block = lambda { puts hello }
    end
    specify { subject.block.should respond_to(:call) }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cantango-core-0.1.9.3 spec/cantango/cancan/rule_spec.rb
cantango-core-0.1.9.2 spec/cantango/cancan/rule_spec.rb
cantango-core-0.1.9.1 spec/cantango/cancan/rule_spec.rb
cantango-core-0.1.9 spec/cantango/cancan/rule_spec.rb
cantango-core-0.1.8 spec/cantango/cancan/rule_spec.rb
cantango-core-0.1.7 spec/cantango/cancan/rule_spec.rb
cantango-core-0.1.6 spec/cantango/cancan/rule_spec.rb
cantango-core-0.1.5 spec/cantango/cancan/rule_spec.rb