diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 22:04:42 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 22:04:42 +0200 |
commit | 29b3279a954825541bb0cfb14b6fe0a92c867c4e (patch) | |
tree | 3ddd4f075d59cd2541531d5dd27e244e30aacfb7 /spec/features | |
parent | 874166d80f5dc946fc7b7715a16c9d39b6af77d3 (diff) | |
download | gitlab-ce-29b3279a954825541bb0cfb14b6fe0a92c867c4e.tar.gz |
Fix: features/ci/events_spec.rb once again
Diffstat (limited to 'spec/features')
-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 |