2015-08-25 21:42:46 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe "Events" do
|
2015-09-15 16:04:42 -04:00
|
|
|
let(:user) { create(:user) }
|
2015-09-15 09:42:02 -04:00
|
|
|
let(:project) { FactoryGirl.create :ci_project }
|
2015-09-15 16:04:42 -04:00
|
|
|
let(:event) { FactoryGirl.create :ci_admin_event, project: project }
|
|
|
|
|
2015-08-25 21:42:46 -04:00
|
|
|
before do
|
2015-09-15 16:04:42 -04:00
|
|
|
login_as(user)
|
|
|
|
project.gl_project.team << [user, :master]
|
2015-08-25 21:42:46 -04:00
|
|
|
end
|
|
|
|
|
2015-09-15 14:56:20 -04:00
|
|
|
describe "GET /ci/project/:id/events" do
|
2015-08-25 21:42:46 -04:00
|
|
|
before do
|
|
|
|
event
|
2015-09-15 09:42:02 -04:00
|
|
|
visit ci_project_events_path(project)
|
2015-08-25 21:42:46 -04:00
|
|
|
end
|
|
|
|
|
2015-09-10 10:55:09 -04:00
|
|
|
it { expect(page).to have_content "Events" }
|
|
|
|
it { expect(page).to have_content event.description }
|
2015-08-25 21:42:46 -04:00
|
|
|
end
|
|
|
|
end
|