<commit_before>feature "Admin visits dashboard" do

  scenario 'an admin visits admin page' do
    # @incidents = ["a","b","c","d","e","f","g"] add these when merged with models
    # @incidents.first.date = "2013-19-22"
    visit "users/admins/dashboard"
    expect(page).to have_content('Report Detail')
    expect(page).to have_content("Recent Reports")
  end
end

feature "Admin searches for an incident" do

  scenario 'an admin searches incidents by names of involved parties' do
    Event.create(submitter: "Jimmy", details: "She said I'm fat.")
    visit "users/admins/dashboard"

    fill_in "search", :with => "fat"
    click_button("search")
    expect(page).to have_content("Jimmy")

  end
end<commit_msg>fixes to pass all spec tests<commit_after>feature "Admin visits dashboard" do

  scenario 'an admin visits admin page' do
    # @incidents = ["a","b","c","d","e","f","g"] add these when merged with models
    # @incidents.first.date = "2013-19-22"
    visit "admins/dashboard"
    expect(page).to have_content('Report Detail')
    expect(page).to have_content("Recent Reports")
  end
end

feature "Admin searches for an incident" do

  scenario 'an admin searches incidents by content of event' do
    Event.create(submitter: "Jimmy", details: "She said I'm fat.", date: "2011-12-09")
    visit "admins/dashboard"

    fill_in "search", :with => "fat"
    click_button("search")
    expect(page).to have_content("2011-12-09")

  end
end
{'fraction_non_alphanumeric': 0.13902271163110805, 'fraction_numerical': 0.02202339986235375, 'mean_word_length': 4.101754385964912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5432057', 'n_tokens_mistral': 497, 'n_tokens_neox': 455, 'n_words': 141}