gitlab-org--gitlab-foss/spec/features/ci/events_spec.rb

23 lines
527 B
Ruby
Raw Normal View History

2015-08-25 21:42:46 -04:00
require 'spec_helper'
describe "Events" do
let(:user) { create(:user) }
2015-09-15 09:42:02 -04:00
let(:project) { FactoryGirl.create :ci_project }
let(:event) { FactoryGirl.create :ci_admin_event, project: project }
2015-08-25 21:42:46 -04:00
before do
login_as(user)
project.gl_project.team << [user, :master]
2015-08-25 21:42:46 -04:00
end
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