<commit_before>feature "Not signed in user views index" do
  before do
    skip
    visit root_path
  end

  scenario "user looking at index, doing nothing" do
    shop1 = Fabricate(:shop)
    shop1.save
    shop2 = Fabricate(:shop)
    shop2.save
    shop3 = Fabricate(:shop)
    shop3.save

    page.should have_css("h2", shop1.name)
    page.should have_css("p", shop1.machine)
    page.should have_css("p", shop1.roaster)
    page.should have_css("p", "#{shop1.city}, #{shop1.state}")
    page.should have_css("p", "PPC: #{shop1.ppc}")
    page.should have_css("p", "Last Updated: #{time_ago_in_words(shop1.updated_at)} ago")


    page.should have_css("h2", shop2.name)
    page.should have_css("p", shop2.machine)
    page.should have_css("p", shop2.roaster)
    page.should have_css("p", "#{shop2.city}, #{shop2.state}")
    page.should have_css("p", "PPC: #{shop2.ppc}")
    page.should have_css("p", "Last Updated: #{time_ago_in_words(shop2.updated_at)} ago")


    page.should have_css("h2", shop3.name)
    page.should have_css("p", shop3.machine)
    page.should have_css("p", shop3.roaster)
    page.should have_css("p", "#{shop3.city}, #{shop3.state}")
    page.should have_css("p", "PPC: #{shop3.ppc}")
    page.should have_css("p", "Last Updated: #{time_ago_in_words(shop3.updated_at)} ago")

  end
end
<commit_msg>simple checking of what's displayed on page<commit_after>feature "Not signed in user views index" do
  before do
    visit root_path
  end

  scenario "user looking at index, doing nothing" do
    shop1 = Fabricate(:shop)
    shop2 = Fabricate(:shop)
    shop3 = Fabricate(:shop)

    page.has_css?(shop1.name)
    page.has_css?(shop1.machine)
    page.has_css?(shop1.roaster)
    page.has_css?("#{shop1.city}, #{shop1.state}")

    page.has_css?(shop2.name)
    page.has_css?(shop2.machine)
    page.has_css?(shop2.roaster)
    page.has_css?("#{shop2.city}, #{shop2.state}")

    page.has_css?(shop3.name)
    page.has_css?(shop3.machine)
    page.has_css?(shop3.roaster)
    page.has_css?("#{shop3.city}, #{shop3.state}")

  end
end

{'fraction_non_alphanumeric': 0.1606969990319458, 'fraction_numerical': 0.023233301064859633, 'mean_word_length': 3.875, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6977228', 'n_tokens_mistral': 778, 'n_tokens_neox': 784, 'n_words': 152}