Sha256: 1f10a35830153a56909e7dfe08b14a676e4703199ac1f9285018d404c89e6bb0
Contents?: true
Size: 684 Bytes
Versions: 48
Compression:
Stored size: 684 Bytes
Contents
require 'test_helper' module Incline class ActionGroupTest < ActiveSupport::TestCase def setup @item = Incline::ActionGroup.new(action_security: incline_action_securities(:one), access_group: incline_access_groups(:one)) end test 'should be valid' do assert @item.valid? end test 'should require action_security' do assert_required @item, :action_security end test 'should require access_group' do assert_required @item, :access_group end test 'access_group should be unique within action_security' do assert_uniqueness @item, :access_group, action_security: incline_action_securities(:two) end end end
Version data entries
48 entries across 48 versions & 1 rubygems