Skip to content

Commit

Permalink
Fix oidc strategy tests
Browse files Browse the repository at this point in the history
- These were previously not being run due to the file name ending in `*_rspec.rb` when it should've been `*_spec.rb`
  • Loading branch information
codihuston committed Feb 1, 2023
1 parent 6e2ed7e commit 9588ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

require 'spec_helper'

RSpec.describe(' Authentication::AuthnOidc::PkceSupportFeature::Strategy') do

RSpec.describe('Authentication::AuthnOidc::PkceSupportFeature::Strategy') do
let(:jwt) { double(raw_attributes: { claim_mapping: "alice" }) }

let(:authenticator) do
Expand Down Expand Up @@ -38,7 +37,7 @@
)
end

describe('#callback') do
describe('#callback', :type => 'unit') do
context 'when a role_id matches the identity exist' do
let(:mapping) { "claim_mapping" }
it 'returns the role' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

require 'spec_helper'

RSpec.describe(' Authentication::AuthnOidc::V2::Strategy') do

RSpec.describe('Authentication::AuthnOidc::V2::Strategy') do
let(:jwt) { double(raw_attributes: { claim_mapping: "alice" }) }

let(:authenticator) do
Expand Down Expand Up @@ -41,7 +40,7 @@
)
end

describe('#callback') do
describe('#callback', :type => 'unit') do
context 'when a role_id matches the identity exist' do
let(:mapping) { "claim_mapping" }
it 'returns the role' do
Expand Down

0 comments on commit 9588ff9

Please sign in to comment.