Commit 77519774 authored by Rémy Coutable's avatar Rémy Coutable

Remove a bogus test that only pass on retry

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 07bd816e
...@@ -5,7 +5,6 @@ require 'spec_helper' ...@@ -5,7 +5,6 @@ require 'spec_helper'
describe ConfirmEmailWarning do describe ConfirmEmailWarning do
before do before do
stub_feature_flags(soft_email_confirmation: true) stub_feature_flags(soft_email_confirmation: true)
allow(User).to receive(:allow_unconfirmed_access_for).and_return 2.days
end end
controller(ApplicationController) do controller(ApplicationController) do
...@@ -52,15 +51,6 @@ describe ConfirmEmailWarning do ...@@ -52,15 +51,6 @@ describe ConfirmEmailWarning do
context 'with an unconfirmed user' do context 'with an unconfirmed user' do
let(:user) { create(:user, confirmed_at: nil) } let(:user) { create(:user, confirmed_at: nil) }
context 'when executing a peek request' do
before do
request.path = '/-/peek'
get :index
end
it { is_expected.not_to set_confirm_warning_for(user.email) }
end
context 'when executing a json request' do context 'when executing a json request' do
before do before do
get :index, format: :json get :index, format: :json
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment