Merge pull request #2911 from consul/backport-fix_time_related_specs
Fix time related specs
This commit is contained in:
@@ -144,7 +144,7 @@ feature 'Legislation' do
|
||||
end
|
||||
|
||||
context 'debate phase' do
|
||||
scenario 'not open' do
|
||||
scenario 'not open', :with_frozen_time do
|
||||
process = create(:legislation_process, debate_start_date: Date.current + 1.day, debate_end_date: Date.current + 2.days)
|
||||
|
||||
visit legislation_process_path(process)
|
||||
@@ -179,7 +179,7 @@ feature 'Legislation' do
|
||||
end
|
||||
|
||||
context 'draft publication phase' do
|
||||
scenario 'not open' do
|
||||
scenario 'not open', :with_frozen_time do
|
||||
process = create(:legislation_process, draft_publication_date: Date.current + 1.day)
|
||||
|
||||
visit draft_publication_legislation_process_path(process)
|
||||
@@ -199,7 +199,7 @@ feature 'Legislation' do
|
||||
end
|
||||
|
||||
context 'allegations phase' do
|
||||
scenario 'not open' do
|
||||
scenario 'not open', :with_frozen_time do
|
||||
process = create(:legislation_process, allegations_start_date: Date.current + 1.day, allegations_end_date: Date.current + 2.days)
|
||||
|
||||
visit allegations_legislation_process_path(process)
|
||||
@@ -219,7 +219,7 @@ feature 'Legislation' do
|
||||
end
|
||||
|
||||
context 'final version publication phase' do
|
||||
scenario 'not open' do
|
||||
scenario 'not open', :with_frozen_time do
|
||||
process = create(:legislation_process, result_publication_date: Date.current + 1.day)
|
||||
|
||||
visit result_publication_legislation_process_path(process)
|
||||
|
||||
Reference in New Issue
Block a user