Sha256: 902bd92362e0763f286d25ba49d7cb4f662638fa87f7384b162bafc567119543
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
require 'test_helper' class WatchTest < ActiveSupport::TestCase test "calls the law class can? with self as first arg" do object = Object.new object.extend Robotnik::Authorization::Watch class << object def admin true end end Robotnik::Authorization::Law.define do status :admin do can :do, :something end end assert object.can?(:do, :something, :stupid) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stasi-0.0.1.alpha | test/watch_test.rb |