summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-15 22:04:42 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-15 22:04:42 +0200
commit29b3279a954825541bb0cfb14b6fe0a92c867c4e (patch)
tree3ddd4f075d59cd2541531d5dd27e244e30aacfb7 /spec/features
parent874166d80f5dc946fc7b7715a16c9d39b6af77d3 (diff)
downloadgitlab-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.rb8
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