Commit e7891dc1 authored by Jiri Strojil's avatar Jiri Strojil

test fixed

parent 361c33b8
...@@ -15,6 +15,10 @@ class SemesterServiceTest < ActionView::TestCase ...@@ -15,6 +15,10 @@ class SemesterServiceTest < ActionView::TestCase
test '#preselect_semester' do test '#preselect_semester' do
travel_to time_z(2018, 9, 10) travel_to time_z(2018, 9, 10)
subject = Semester.new subject = Semester.new
assert_equal time_z(2017, 12, 1).to_date...time_z(2018, 5, 1).end_of_month.to_date, subject.preselect_semester
travel_to time_z(2018, 10, 10)
subject = Semester.new
assert_equal time_z(2018, 6, 1).to_date...time_z(2018, 11, 1).end_of_month.to_date, subject.preselect_semester assert_equal time_z(2018, 6, 1).to_date...time_z(2018, 11, 1).end_of_month.to_date, subject.preselect_semester
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