<commit_before>require 'rails_helper'

describe "authors/index" do
	before :each do
    create(:author)
  end

	it "has a link to authors/new" do
		assign(:authors, Author.all)
		render :template => "authors/index.html.erb"

		expect(rendered).to have_selector 'a', :text => 'Add author'
	end

	it "has a link to an authors page" do
		assign(:authors, Author.all)
		render :template => "authors/index.html.erb"

		expect(rendered).to have_selector 'a', :text => 'Show'
	end

	it "has a link to an authors edit page" do
		assign(:authors, Author.all)
		render :template => "authors/index.html.erb"

		expect(rendered).to have_selector 'a', :text => 'Edit'
	end
end<commit_msg>Failing test for #28<commit_after>require 'rails_helper'

describe "authors/index" do
	before :each do
    create(:author)
  end

	it "has a link to authors/new" do
		assign(:authors, Author.all)
		render :template => "authors/index.html.erb"

		expect(rendered).to have_selector 'a', :text => 'Add author'
	end

	it "has a link to an authors page" do
		assign(:authors, Author.all)
		render :template => "authors/index.html.erb"

		expect(rendered).to have_selector 'a', :text => 'Show'
	end

	it "has a link to an authors edit page" do
		assign(:authors, Author.all)
		render :template => "authors/index.html.erb"

		expect(rendered).to have_selector 'a', :text => 'Edit'
	end

	it "has a link to delete an author" do
		assign(:authors, Author.all)
		render :template => "authors/index.html.erb"

		expect(rendered).to have_selector 'a', :text => 'Delete'
	end
end
{'fraction_non_alphanumeric': 0.13562621674237507, 'fraction_numerical': 0.0012978585334198572, 'mean_word_length': 4.089108910891089, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '6634463', 'n_tokens_mistral': 580, 'n_tokens_neox': 516, 'n_words': 164}