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

Version Path
incline-0.3.14 test/models/incline/action_group_test.rb
incline-0.3.13 test/models/incline/action_group_test.rb
incline-0.3.12 test/models/incline/action_group_test.rb
incline-0.3.11 test/models/incline/action_group_test.rb
incline-0.3.10 test/models/incline/action_group_test.rb
incline-0.3.9 test/models/incline/action_group_test.rb
incline-0.3.8 test/models/incline/action_group_test.rb
incline-0.3.7 test/models/incline/action_group_test.rb
incline-0.3.6 test/models/incline/action_group_test.rb
incline-0.3.5 test/models/incline/action_group_test.rb
incline-0.3.4 test/models/incline/action_group_test.rb
incline-0.3.3 test/models/incline/action_group_test.rb
incline-0.3.2 test/models/incline/action_group_test.rb
incline-0.3.1 test/models/incline/action_group_test.rb
incline-0.3.0 test/models/incline/action_group_test.rb
incline-0.2.36 test/models/incline/action_group_test.rb
incline-0.2.35 test/models/incline/action_group_test.rb
incline-0.2.34 test/models/incline/action_group_test.rb
incline-0.2.28 test/models/incline/action_group_test.rb
incline-0.2.27 test/models/incline/action_group_test.rb