Commit 7ce4ff16 authored by Jiri Strojil's avatar Jiri Strojil

TMP

parent 81a0ecba
......@@ -92,6 +92,7 @@ class SemesterProcessVolunteerTest < ActiveSupport::TestCase
subject.build_missions(semester.previous)
assert_equal 0, subject.semester_process_volunteer_missions.size
end
test '#active_missions scope' do
travel_to time_z(2018, 7, 15)
semester = Semester.new
......@@ -102,6 +103,7 @@ class SemesterProcessVolunteerTest < ActiveSupport::TestCase
subject.build_missions(semester.previous)
@assignment.update(period_end: time_z(2016, 7, 15))
assert_equal 1, subject.semester_process_volunteer_missions.size
assert_equal 0, subject.semester_process_volunteer_missions.active_missions.size
assert_equal 0, subject.semester_process_volunteer_missions.need_feedback.size
assert_equal 0, SemesterProcessVolunteer.index(Semester.new).size
end
end
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