Skip to content

Commit 4845561

Browse files
author
Alistair Davidson
committed
move token_authentication_concern under reporting_api namespace
1 parent 053fd67 commit 4845561

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/controllers/concerns/token_authentication_concern.rb renamed to app/controllers/concerns/reporting_api/token_authentication_concern.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module TokenAuthenticationConcern
3+
module ReportingAPI::TokenAuthenticationConcern
44
extend ActiveSupport::Concern
55

66
included do

spec/controllers/concerns/token_authentication_concern_spec.rb renamed to spec/controllers/concerns/reporting_api/token_authentication_concern_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# frozen_string_literal: true
22

3-
describe TokenAuthenticationConcern do
3+
describe ReportingAPI::TokenAuthenticationConcern do
44
let(:user) { @user = build(:user) }
55
let(:mock_request) { instance_double(request.class, headers: {}) }
66
let(:an_object_which_includes_the_concern) do
77
Class
88
.new do # rubocop:disable Style/BlockDelimiters
9-
include TokenAuthenticationConcern
9+
include ReportingAPI::TokenAuthenticationConcern
1010
attr_accessor :request, :session
1111

1212
def authenticate_user!

0 commit comments

Comments
 (0)