require 'spec_helper' describe "Events" do let(:user) { create(:user) } let(:project) { FactoryGirl.create :ci_project } let(:event) { FactoryGirl.create :ci_admin_event, project: project } before do login_as(user) project.gl_project.team << [user, :master] end describe "GET /ci/project/:id/events" do before do event visit ci_project_events_path(project) end it { expect(page).to have_content "Events" } it { expect(page).to have_content event.description } end end