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
b81dccc3
Commit
b81dccc3
authored
Jan 28, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
dcaaacb0
52b07c80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
spec/features/projects/settings/user_changes_default_branch_spec.rb
...res/projects/settings/user_changes_default_branch_spec.rb
+0
-3
spec/support/helpers/select2_helper.rb
spec/support/helpers/select2_helper.rb
+4
-0
No files found.
spec/features/projects/settings/user_changes_default_branch_spec.rb
View file @
b81dccc3
...
@@ -15,9 +15,6 @@ describe 'Projects > Settings > User changes default branch' do
...
@@ -15,9 +15,6 @@ describe 'Projects > Settings > User changes default branch' do
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
user
.
namespace
)
}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
user
.
namespace
)
}
it
'allows to change the default branch'
,
:js
do
it
'allows to change the default branch'
,
:js
do
# Otherwise, running JS may overwrite our change to project_default_branch
wait_for_requests
select2
(
'fix'
,
from:
'#project_default_branch'
)
select2
(
'fix'
,
from:
'#project_default_branch'
)
page
.
within
'#default-branch-settings'
do
page
.
within
'#default-branch-settings'
do
...
...
spec/support/helpers/select2_helper.rb
View file @
b81dccc3
...
@@ -11,9 +11,13 @@
...
@@ -11,9 +11,13 @@
#
#
module
Select2Helper
module
Select2Helper
include
WaitForRequests
def
select2
(
value
,
options
=
{})
def
select2
(
value
,
options
=
{})
raise
ArgumentError
,
'options must be a Hash'
unless
options
.
is_a?
(
Hash
)
raise
ArgumentError
,
'options must be a Hash'
unless
options
.
is_a?
(
Hash
)
wait_for_requests
unless
options
[
:async
]
selector
=
options
.
fetch
(
:from
)
selector
=
options
.
fetch
(
:from
)
first
(
selector
,
visible:
false
)
first
(
selector
,
visible:
false
)
...
...
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