<commit_before>require 'spec_helper'

describe "Static Pages" do
  describe "Home page" do
  	it "should have title 'iso-yd'" do
      visit '/static_pages/home'
      expect(page).to have_title('iso-yd | Home of WebApp for ISO')
    end
    it "should have the content 'Yacht Design Analysis for ISO'" do
      # Capybara provides visit, which sets the page variable
      visit '/static_pages/home'
      expect(page).to have_content('Yacht Design Analysis for ISO')
    end
  end
  describe "About page" do
  	it "should have title with 'About'" do
  	  visit '/static_pages/about'
  	  expect(page).to have_title('About')
  	end
  	it "should have content 'MIT License'" do
  	  visit '/static_pages/about'
  	  expect(page).to have_content('MIT License')
  	end
  end
  describe "Help page" do
  	it "should have title with 'Help'" do
  	  visit '/static_pages/help'
  	  expect(page).to have_title('Help')
  	end
  	it "should have content with 'mailto:<EMAIL>'" do
  	  visit '/static_pages/help'
  	  expect(page).to have_content('send email to me')<commit_msg>Fix home page title test<commit_after>require 'spec_helper'

describe "Static Pages" do
  describe "Home page" do
  	it "should have title 'iso-yd'" do
      visit '/static_pages/home'
      expect(page).to have_title('iso-yd | Home of Web App for ISO')
    end
    it "should have the content 'Yacht Design Analysis for ISO'" do
      # Capybara provides visit, which sets the page variable
      visit '/static_pages/home'
      expect(page).to have_content('Yacht Design Analysis for ISO')
    end
  end
  describe "About page" do
  	it "should have title with 'About'" do
  	  visit '/static_pages/about'
  	  expect(page).to have_title('About')
  	end
  	it "should have content 'MIT License'" do
  	  visit '/static_pages/about'
  	  expect(page).to have_content('MIT License')
  	end
  end
  describe "Help page" do
  	it "should have title with 'Help'" do
  	  visit '/static_pages/help'
  	  expect(page).to have_title('Help')
  	end
  	it "should have content with 'mailto:<EMAIL>'" do
  	  visit '/static_pages/help'
  	  expect(page).to have_content('send email to me')
{'fraction_non_alphanumeric': 0.10325581395348837, 'fraction_numerical': 0.0, 'mean_word_length': 3.201171875, 'pattern_counts': {'":': 0, '<': 5, '<?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': '108895', 'n_tokens_mistral': 699, 'n_tokens_neox': 694, 'n_words': 234}