<commit_before>require 'spec_helper'

describe "Course Pages" do

  subject { page }

  describe "Courses page" do
    before { visit courses_path }
    it { should have_content('Listing courses') }
    it { should have_content('Course title') }
    it { should have_content('Crse') }
    it { should have_content('Subject') }
  end
  describe "Courses page" do
    before {visit "/courses/1"}
    it { should have_content('Discrete Structures') }
  end
end<commit_msg>Update course_pages_spec.rb<commit_after>require 'spec_helper'

describe "Course Pages" do

  subject { page }
  #this is the subject that we are looking for 
  #page looks at elements on the page. 
  
  describe "Courses page" do
  #title doesn't matter 
    before { visit courses_path }
    #goes to url 
    it { should have_content('Listing courses') }
    it { should have_content('Course title') }
    #should have content just searches plain html for the string 
    it { should have_content('Crse') }
    it { should have_content('Subject') }
    #things we should check on page 
  end
  describe "Courses page" do
    before {visit "/courses/1"}
    it { should have_content('Discrete Structures') }
  end
end

{'fraction_non_alphanumeric': 0.09335576114381834, 'fraction_numerical': 0.001682085786375105, 'mean_word_length': 3.4569288389513106, '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': '3727264', 'n_tokens_mistral': 372, 'n_tokens_neox': 351, 'n_words': 124}