<commit_before>require 'spec_helper'

describe "events/index" do
  before(:each) do
    assign(:events, [
      stub_model(Event,
        :name => "Name",
        :place => "Place",
        :image => "Image",
        :url => "Url"
      ),
      stub_model(Event,
        :name => "Name",
        :place => "Place",
        :image => "Image",
        :url => "Url"
      )
    ])
  end

  it "renders a list of events" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => "Name".to_s, :count => 2
    assert_select "tr>td", :text => "Place".to_s, :count => 2
    assert_select "tr>td", :text => "Image".to_s, :count => 2
    assert_select "tr>td", :text => "Url".to_s, :count => 2
  end
end<commit_msg>final travis test error fix<commit_after>require 'spec_helper'

describe "events/index" do
  before(:each) do
    assign(:events, [FactoryGirl.create(:event), FactoryGirl.create(:event)])
  end

  it "renders a list of events" do
    render

    assert_select 'div.row-fluid' do |element|
      assert_select 'h3.group-monthly-title', 1
    end

    assert_select 'div.row-fluid' do |element|
      assert_select 'h1.event-title', 2
      assert_select 'h2.event-place', 2
      assert_select 'h3.event-time-date', 2
    end
  end
end
{'fraction_non_alphanumeric': 0.1461014383043149, 'fraction_numerical': 0.009084027252081756, 'mean_word_length': 2.7030812324929974, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '3819434', 'n_tokens_mistral': 467, 'n_tokens_neox': 450, 'n_words': 122}