<commit_before>require 'integration_test_helper'

class CalendarsTest < ActionDispatch::IntegrationTest
  
  should "give a 404 status when a calendar does not exist" do
    visit '/maternity'
    assert page.status_code == 404
  end

end<commit_msg>Add another integration test to ensure bad divisions 404<commit_after>require 'integration_test_helper'

class CalendarsTest < ActionDispatch::IntegrationTest

  should "give a 404 status when a calendar does not exist" do
    visit '/maternity'
    assert page.status_code == 404
  end

  should "give a 404 when asked for a division that doesn't exist" do
    visit "/when-do-the-clocks-change/A188770693.ics"
    assert page.status_code == 404
  end
end
{'fraction_non_alphanumeric': 0.06657223796033994, 'fraction_numerical': 0.042492917847025496, 'mean_word_length': 4.237037037037037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6065769', 'n_tokens_mistral': 238, 'n_tokens_neox': 201, 'n_words': 74}