Sha256: f3f50a052201d56df09a76cb2e2d8b400dc641552873855f6c47fe4e56a60163
Contents?: true
Size: 481 Bytes
Versions: 5
Compression:
Stored size: 481 Bytes
Contents
require 'test_helper' module Guts class AbilityTest < ActiveSupport::TestCase test 'should get subject class for guts models' do ability = Guts::Ability.new nil result = ability.send :subject_class, 'Guts::Type' assert_instance_of Class, result end test 'should get symbol for non-guts models' do ability = Guts::Ability.new nil result = ability.send :subject_class, 'all' assert_instance_of Symbol, result end end end
Version data entries
5 entries across 5 versions & 1 rubygems