<commit_before>require_relative '../spec_helper'


describe "index controller" do

  before :each do
    @temples = Temple.all
  end

  describe "GET /" do
    it "exists and responds with an OK status" do
      get '/'
      expect(last_response).to be_ok
    end
  end
end

feature 'LDS enthusiast visits the page' do

  scenario 'all temples are listed in sidebar' do
    visit '/'
    expect(page).to have_content('Aba Nigeria Temple')
    expect(page).to have_content('Winter Quarters Nebraska Temple')
    expect(page).to have_css('div.item', count: 170)
  end

  scenario 'map is loaded from mapbox' do
    visit '/'
    expect(page).to have_css('img.leaflet-tile')
  end

end<commit_msg>adds a few more RSpec tests<commit_after>require_relative '../spec_helper'


describe "index controller" do

  before :each do
    @temples = Temple.all
  end

  describe "GET /" do
    it "exists and responds with an OK status" do
      get '/'
      expect(last_response).to be_ok
    end
  end
end

feature 'LDS enthusiast visits the page' do

  scenario 'first temple is listed in sidebar' do
    visit '/'
    expect(page).to have_content('Aba Nigeria Temple')
  end

  scenario 'last temple is listed in sidebar' do
    visit '/'
    expect(page).to have_content('Winter Quarters Nebraska Temple')
  end

  scenario 'all temples are listed in sidebar' do
    visit '/'
    expect(page).to have_css('div.item', count: 170)
  end

  scenario 'map is loaded from mapbox' do
    visit '/'
    expect(page).to have_css('img.leaflet-tile')
  end

end
{'fraction_non_alphanumeric': 0.0970873786407767, 'fraction_numerical': 0.003883495145631068, 'mean_word_length': 3.1117021276595747, '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': '906461', 'n_tokens_mistral': 512, 'n_tokens_neox': 481, 'n_words': 168}