Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7ff669a7
Commit
7ff669a7
authored
Jun 12, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests for EE after CE merge
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f8409031
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
features/project/project.feature
features/project/project.feature
+2
-1
features/steps/groups_management.rb
features/steps/groups_management.rb
+0
-1
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+6
-3
No files found.
features/project/project.feature
View file @
7ff669a7
...
...
@@ -67,9 +67,10 @@ Feature: Project
Scenario
:
I
should see audit events
And
gitlab user
"Pete"
And
"Pete"
is
"Shop"
developer
When
I visit project
"Shop"
settings
page
When
I visit project
"Shop"
page
And
I go to
"Members"
And
I change
"Pete"
access level to master
And
I visit project
"Shop"
settings page
And
I go to
"Audit Events"
Then
I should see the audit event listed
...
...
features/steps/groups_management.rb
View file @
7ff669a7
...
...
@@ -24,7 +24,6 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
step
'I go to "Open" project members page'
do
click_link
'Sourcing / Open'
click_link
'Settings'
click_link
'Members'
end
...
...
features/steps/project/merge_requests.rb
View file @
7ff669a7
...
...
@@ -334,21 +334,24 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
merge_request
=
MergeRequest
.
find_by!
(
title:
"Bug NS-04"
)
project
=
merge_request
.
target_project
project
.
approvals_before_merge
=
1
project
.
ensure_satellite_exists
project
.
save!
end
step
'I click link "Approve"'
do
click_button
'Approve Merge Request'
within
'.mr-state-widget'
do
click_button
'Approve Merge Request'
end
end
step
'I should not see merge button'
do
within
'.
can_be_merged
'
do
within
'.
mr-state-widget
'
do
page
.
should_not
have_button
(
"Accept Merge Request"
)
end
end
step
'I should see approved merge request "Bug NS-04"'
do
within
'.
can_be_merged
'
do
within
'.
mr-state-widget
'
do
page
.
should
have_button
(
"Accept Merge Request"
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment