<commit_before>require 'rails_helper'
require 'capybara/rspec'
RSpec.describe '/authors/index', type: :view  do
	before(:context) do
		@author = create(:author)
		@authors = Author.all
	end
	describe "Contains 'alan turing'"
		it "checks if 'alan turing' exists" do
			render :template => '/authors/index.html.erb'
			expect(rendered).to have_text("Alan Turing http://wikipedia.de/Alan_Turing")
		end
	describe "first and last name in one column"
		it "checks if a css tag 'th' with text 'name' exists" do
			render :template => '/authors/index.html.erb'
			expect(rendered).to have_css("th", text: "Name")

		end
		
end<commit_msg>Failing test for #17<commit_after>require 'rails_helper'
require 'capybara/rspec'
RSpec.describe '/authors/index', type: :view  do
	before(:context) do
		@author = create(:author)
		@authors = Author.all
	end
	describe "Contains 'alan turing'"
		it "checks if 'alan turing' exists" do
			render :template => '/authors/index.html.erb'
			expect(rendered).to have_text("Alan Turing http://wikipedia.de/Alan_Turing")
		end
	describe "first and last name in one column"
		it "checks if a css tag 'th' with text 'name' exists" do
			render :template => '/authors/index.html.erb'
			expect(rendered).to have_css("th", text: "Name")

		end
	describe "link to 'new author'-page"
		it "checks if a css tag 'a' with text 'add author' exists" do
			render :template => '/authors/index.html.erb'
			expect(rendered).to have_css("a", text: "add author")

		end
		
		
end
{'fraction_non_alphanumeric': 0.1343183344526528, 'fraction_numerical': 0.001343183344526528, 'mean_word_length': 4.120274914089347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3081983', 'n_tokens_mistral': 573, 'n_tokens_neox': 491, 'n_words': 157}