Sha256: 8464c37f4ab6835083366bea42f61e439471a19d0131e09472ba8a86cc0aad44

Contents?: true

Size: 349 Bytes

Versions: 7

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::ApplicationController, type: :controller do
  describe 'Require authentication' do
    context 'when requesting /admin/*' do
      it { is_expected.to use_before_action(:authenticate_user!) }
      it { is_expected.to use_before_action(:ensure_admin!) }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kowl-0.0.7 lib/kowl/templates/tests/rspec/controllers/admin/application_controller_spec.rb
kowl-0.0.6 lib/kowl/templates/tests/rspec/controllers/admin/application_controller_spec.rb
kowl-0.0.5 lib/kowl/templates/tests/rspec/controllers/admin/application_controller_spec.rb
kowl-0.0.4 lib/kowl/templates/tests/rspec/controllers/admin/application_controller_spec.rb
kowl-0.0.3 lib/kowl/templates/tests/rspec/controllers/admin/application_controller_spec.rb
kowl-0.0.2 lib/kowl/templates/tests/rspec/controllers/admin/application_controller_spec.rb
kowl-0.0.1 lib/kowl/templates/tests/rspec/controllers/admin/application_controller_spec.rb