Sha256: 403e7bf419809cbc60fabdb4562670098f82c3d7b023ea81b98d8530539cf0bb

Contents?: true

Size: 1.37 KB

Versions: 48

Compression:

Stored size: 1.37 KB

Contents

require 'test_helper'

module Incline
  class SecurityControllerTest < ::ActionDispatch::IntegrationTest

    def setup
      @group_ids = [ incline_access_groups(:one).id, incline_access_groups(:two).id ]
    end

    PARAM_STRING = '{ :action_security => { :group_ids => @group_ids }}'

    access_tests_for :index,
                     url_helper: 'incline.index_security_path',
                     allow_anon: false,
                     allow_any_user: false,
                     allow_admin: true

    access_tests_for :show,
                     url_helper: 'incline.security_path(incline_action_securities(:one))',
                     allow_anon: false,
                     allow_any_user: false,
                     allow_admin: true

    access_tests_for :edit,
                     url_helper: 'incline.edit_security_path(incline_action_securities(:one))',
                     allow_anon: false,
                     allow_any_user: false,
                     allow_admin: true

    access_tests_for :update,
                     url_helper: 'incline.security_path(incline_action_securities(:one))',
                     success: 'incline.index_security_path',
                     method: :patch,
                     allow_anon: false,
                     allow_any_user: false,
                     allow_admin: true,
                     update_params: PARAM_STRING
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

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