remove pending tests
This commit is contained in:
parent
7b9a954473
commit
8a2aa13b74
2 changed files with 7 additions and 7 deletions
|
@ -19,7 +19,7 @@ describe 'Dossier details:' do
|
||||||
describe "the user can see the mean time they are expected to wait" do
|
describe "the user can see the mean time they are expected to wait" do
|
||||||
let(:other_dossier) { create(:dossier, :accepte, :with_individual, procedure: procedure, en_construction_at: 10.days.ago, en_instruction_at: 9.days.ago, processed_at: Time.zone.now) }
|
let(:other_dossier) { create(:dossier, :accepte, :with_individual, procedure: procedure, en_construction_at: 10.days.ago, en_instruction_at: 9.days.ago, processed_at: Time.zone.now) }
|
||||||
|
|
||||||
context "when the dossier is in construction", pending: true do
|
context "when the dossier is in construction" do
|
||||||
it "displays the estimated wait duration" do
|
it "displays the estimated wait duration" do
|
||||||
other_dossier
|
other_dossier
|
||||||
visit dossier_path(dossier)
|
visit dossier_path(dossier)
|
||||||
|
@ -27,7 +27,7 @@ describe 'Dossier details:' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "when the dossier is in instruction", pending: true do
|
context "when the dossier is in instruction" do
|
||||||
let(:dossier) { create(:dossier, :en_instruction, :with_individual, :with_commentaires, user: user, procedure: procedure) }
|
let(:dossier) { create(:dossier, :en_instruction, :with_individual, :with_commentaires, user: user, procedure: procedure) }
|
||||||
|
|
||||||
it "displays the estimated wait duration" do
|
it "displays the estimated wait duration" do
|
||||||
|
|
|
@ -981,7 +981,7 @@ describe Procedure do
|
||||||
context 'when there are several processed dossiers' do
|
context 'when there are several processed dossiers' do
|
||||||
let(:delays) { [1.day, 2.days, 2.days, 2.days, 2.days, 3.days, 3.days, 3.days, 3.days, 12.days] }
|
let(:delays) { [1.day, 2.days, 2.days, 2.days, 2.days, 3.days, 3.days, 3.days, 3.days, 12.days] }
|
||||||
|
|
||||||
it 'returns a time representative of the dossier instruction delay', pending: true do
|
it 'returns a time representative of the dossier instruction delay' do
|
||||||
expect(procedure.usual_traitement_time).to be_between(3.days, 4.days)
|
expect(procedure.usual_traitement_time).to be_between(3.days, 4.days)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -990,7 +990,7 @@ describe Procedure do
|
||||||
let(:delays) { [2.days, 2.days] }
|
let(:delays) { [2.days, 2.days] }
|
||||||
let!(:old_dossier) { create_dossier(construction_date: 3.months.ago, instruction_date: 2.months.ago, processed_date: 2.months.ago) }
|
let!(:old_dossier) { create_dossier(construction_date: 3.months.ago, instruction_date: 2.months.ago, processed_date: 2.months.ago) }
|
||||||
|
|
||||||
it 'ignores dossiers older than 1 month', pending: true do
|
it 'ignores dossiers older than 1 month' do
|
||||||
expect(procedure.usual_traitement_time).to be_within(1.hour).of(2.days)
|
expect(procedure.usual_traitement_time).to be_within(1.hour).of(2.days)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -999,17 +999,17 @@ describe Procedure do
|
||||||
let(:delays) { [2.days, 2.days] }
|
let(:delays) { [2.days, 2.days] }
|
||||||
let!(:bad_dossier) { create_dossier(construction_date: nil, instruction_date: nil, processed_date: 10.days.ago) }
|
let!(:bad_dossier) { create_dossier(construction_date: nil, instruction_date: nil, processed_date: 10.days.ago) }
|
||||||
|
|
||||||
it 'ignores bad dossiers', pending: true do
|
it 'ignores bad dossiers' do
|
||||||
expect(procedure.usual_traitement_time).to be_within(1.hour).of(2.days)
|
expect(procedure.usual_traitement_time).to be_within(1.hour).of(2.days)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when there is only one processed dossier', pending: true do
|
context 'when there is only one processed dossier' do
|
||||||
let(:delays) { [1.day] }
|
let(:delays) { [1.day] }
|
||||||
it { expect(procedure.usual_traitement_time).to be_within(1.hour).of(1.day) }
|
it { expect(procedure.usual_traitement_time).to be_within(1.hour).of(1.day) }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'where there is no processed dossier', pending: true do
|
context 'where there is no processed dossier' do
|
||||||
let(:delays) { [] }
|
let(:delays) { [] }
|
||||||
it { expect(procedure.usual_traitement_time).to be_nil }
|
it { expect(procedure.usual_traitement_time).to be_nil }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue