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
e7a20c34
Commit
e7a20c34
authored
Jul 09, 2020
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec confirming default_branch_name usage
parent
7a28e1c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb
...es/projects/show/user_sees_setup_shortcut_buttons_spec.rb
+17
-0
No files found.
spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb
View file @
e7a20c34
...
@@ -63,6 +63,23 @@ RSpec.describe 'Projects > Show > User sees setup shortcut buttons' do
...
@@ -63,6 +63,23 @@ RSpec.describe 'Projects > Show > User sees setup shortcut buttons' do
expect
(
page
).
to
have_link
(
'Add LICENSE'
,
href:
presenter
.
add_license_path
)
expect
(
page
).
to
have_link
(
'Add LICENSE'
,
href:
presenter
.
add_license_path
)
end
end
end
end
context
'Gitlab::CurrentSettings.default_branch_name is available'
do
before
do
expect
(
Gitlab
::
CurrentSettings
)
.
to
receive
(
:default_branch_name
)
.
at_least
(
:once
)
.
and_return
(
'example_branch'
)
visit
project_path
(
project
)
end
it
'"New file" button linked to new file page'
do
page
.
within
(
'.project-buttons'
)
do
expect
(
page
).
to
have_link
(
'New file'
,
href:
project_new_blob_path
(
project
,
'example_branch'
))
end
end
end
end
end
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