Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spec/controllers/idv/session_errors_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
let(:user) { create(:user) }

before do
RateLimiter.new(rate_limit_type: :proof_address, user: user).increment!
RateLimiter.new(rate_limit_type: :idv_resolution, user: user).increment!
end

it 'assigns remaining count' do
Expand All @@ -180,7 +180,7 @@
'IdV: session error visited',
hash_including(
type: action.to_s,
attempts_remaining: 5,
attempts_remaining: IdentityConfig.store.idv_max_attempts - 1,
),
)
response
Expand Down Expand Up @@ -236,7 +236,7 @@
let(:user) { create(:user) }

before do
RateLimiter.new(rate_limit_type: :proof_address, user: user).increment_to_limited!
RateLimiter.new(rate_limit_type: :idv_resolution, user: user).increment_to_limited!
end

it 'assigns expiration time' do
Expand All @@ -258,7 +258,7 @@
'IdV: session error visited',
hash_including(
type: action.to_s,
attempts_remaining: 5,
attempts_remaining: 0,
),
)
get action
Expand Down