summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-26 09:07:08 +0000
committerRémy Coutable <remy@rymai.me>2017-01-26 09:07:08 +0000
commit37b4503125c797fbcb7b00f1e73d574dfdfa5816 (patch)
tree18125a1503810ac8d8f3ab0505fb482eaac20ebf /features
parent3a0d9314b187ac406b33ee73d05d4f7b0e316c8b (diff)
parentc1743ba4c4d838e95bed0d3e74e48a191684c4bf (diff)
downloadgitlab-ce-37b4503125c797fbcb7b00f1e73d574dfdfa5816.tar.gz
Merge branch 'rs-empty_project-for-associations' into 'master'
Factories with a project association use `:empty_project` by default See merge request !8770
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/merge_requests/revert.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/features/steps/project/merge_requests/revert.rb b/features/steps/project/merge_requests/revert.rb
index 3cc4fe9dafb..31f95b524b3 100644
--- a/features/steps/project/merge_requests/revert.rb
+++ b/features/steps/project/merge_requests/revert.rb
@@ -30,14 +30,13 @@ class Spinach::Features::RevertMergeRequests < Spinach::FeatureSteps
end
step 'I am signed in as a developer of the project' do
+ @user = create(:user) { |u| @project.add_developer(u) }
login_as(@user)
end
step 'There is an open Merge Request' do
- @user = create(:user)
- @project = create(:project, :public, :repository)
- @project_member = create(:project_member, :developer, user: @user, project: @project)
- @merge_request = create(:merge_request, :with_diffs, :simple, source_project: @project)
+ @merge_request = create(:merge_request, :with_diffs, :simple)
+ @project = @merge_request.source_project
end
step 'I should see a revert error' do