<commit_before>require 'spec_helper'

describe "issues/index" do
  before(:each) do
    @game = assign(:game, FactoryGirl.create(:game))
    @issues = assign(:issues, FactoryGirl.create_list(:issue, 2, :game => @game))
  end

  it "renders a list of issues" do
    render
    assert_select "tr>td", :text => @issues.first.summary, :count => 2
    assert_select "tr>td", :text => "New".to_s, :count => 2
  end
end<commit_msg>update view spec to account for new list.js structure<commit_after>require 'spec_helper'

describe "issues/index" do
  before(:each) do
    @game = assign(:game, FactoryGirl.create(:game))
    @issues = assign(:issues, FactoryGirl.create_list(:issue, 2, :game => @game))
  end

  it "renders a list of issues" do
    render
    assert_select "tr>td.summary", :text => /#{@issues.first.summary}/, :count => 2
    assert_select "tr span.status", :text => @issues.first.status, :count => 2
  end
end
{'fraction_non_alphanumeric': 0.1532608695652174, 'fraction_numerical': 0.006521739130434782, 'mean_word_length': 4.174157303370786, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '5437754', 'n_tokens_mistral': 317, 'n_tokens_neox': 303, 'n_words': 86}