diff --git a/spec/system/category_calendar_spec.rb b/spec/system/category_calendar_spec.rb index ee1b82bb..c49cc020 100644 --- a/spec/system/category_calendar_spec.rb +++ b/spec/system/category_calendar_spec.rb @@ -20,10 +20,12 @@ describe "Category calendar", type: :system do find(".nav-item_hot").click + expect(page).to have_current_path("#{category.relative_url}/l/hot") expect(category_page).to have_selector("#category-events-calendar.fc") find(".nav-item_latest").click + expect(page).to have_current_path("#{category.relative_url}/l/latest") expect(category_page).to have_selector("#category-events-calendar.fc") end end