<commit_before>require 'rails_helper'

RSpec.describe "issues/index", type: :view do
  let(:project){ FactoryGirl.create(:project, owner: user) }
  let(:user){ FactoryGirl.create(:user) }
  before(:each) do
    assign(:issues, [
      FactoryGirl.create(:issue, title: 'issue1', project: project, creator: user),
      FactoryGirl.create(:issue, title: 'issue2', project: project, creator: user),
    ])
  end

  it "renders a list of issues" do
    render
    assert_select "tr>td", :text => 'project1', :count => 2
    assert_select "tr>td", :text => '<EMAIL>', :count => 2
    assert_select "tr>td", :text => 'issue1', :count => 1
    assert_select "tr>td", :text => 'issue2', :count => 1
    assert_select "tr>td", :text => 'Draft', :count => 2
  end
end
<commit_msg>Fix generated spec for index template<commit_after>require 'rails_helper'

RSpec.describe "issues/index", type: :view do
  let(:project){ FactoryGirl.create(:project, owner: user) }
  let(:user){ FactoryGirl.create(:user) }
  before(:each) do
    assign(:issues, [
      FactoryGirl.create(:issue, title: 'issue1', project: project, creator: user),
      FactoryGirl.create(:issue, title: 'issue2', project: project, creator: user),
    ])
  end

  it "renders a list of issues" do
    render
    assert_select "tr>td", :text => 'project1', :count => 2
    assert_select "tr>td", :text => 'issue1', :count => 1
    assert_select "tr>td", :text => 'issue2', :count => 1
    assert_select "tr>td", :text => 'Draft', :count => 2
    assert_select "tr>td", :text => '<EMAIL>', :count => 2
  end
end

{'fraction_non_alphanumeric': 0.17369093231162197, 'fraction_numerical': 0.01277139208173691, 'mean_word_length': 4.154605263157895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '3947451', 'n_tokens_mistral': 538, 'n_tokens_neox': 515, 'n_words': 147}