| 2 | |
| 3 | class CachingTest < ActionDispatch::IntegrationTest |
| 4 | def setup |
| 5 | @multi_lesson_unit = create(:unit, :with_levels, lessons_count: 3, levels_count: 10) |
| 6 | @multi_lesson_unit_group = create(:single_unit_course, unit: @multi_lesson_unit) |
| 7 | |
| 8 | @other_hoc_unit = create(:unit, :with_levels, levels_count: 10) |
| 9 | @other_hoc_course = create(:hoc_course, unit: @other_hoc_unit) |
| 10 | |
| 11 | setup_script_cache |
| 12 | end |
| 13 | |
| 14 | test "should get /hoc/1" do |
| 15 | create_hourofcode_unit_and_levels |