debian-mirror-gitlab/spec/features/ci/events_spec.rb
2015-09-25 12:07:36 +05:30

22 lines
527 B
Ruby

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