diff options
-rw-r--r-- | spec/features/ci/events_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/features/ci/events_spec.rb b/spec/features/ci/events_spec.rb index 8142eaff274..5b9fd404159 100644 --- a/spec/features/ci/events_spec.rb +++ b/spec/features/ci/events_spec.rb @@ -1,11 +1,13 @@ 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 } - + let(:event) { FactoryGirl.create :ci_admin_event, project: project } + before do - login_as :user + login_as(user) + project.gl_project.team << [user, :master] end describe "GET /ci/project/:id/events" do |