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
36a9ed0b
Commit
36a9ed0b
authored
Jul 21, 2018
by
Peter Leitzen
Committed by
Sean McGivern
Aug 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a feature spec for "/tag"
parent
5e4ce2f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
spec/features/commits/user_uses_slash_commands_spec.rb
spec/features/commits/user_uses_slash_commands_spec.rb
+36
-0
No files found.
spec/features/commits/user_uses_slash_commands_spec.rb
0 → 100644
View file @
36a9ed0b
require
'rails_helper'
describe
'Commit > User uses quick actions'
,
:js
do
include
Spec
::
Support
::
Helpers
::
Features
::
NotesHelpers
include
RepoHelpers
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:user
)
{
project
.
creator
}
let
(
:commit
)
{
project
.
commit
}
before
do
project
.
add_maintainer
(
user
)
sign_in
(
user
)
visit
project_commit_path
(
project
,
commit
.
id
)
end
describe
'Tagging a commit'
do
let
(
:tag_name
)
{
'v1.2.3'
}
let
(
:tag_message
)
{
'Stable release'
}
let
(
:truncated_commit_sha
)
{
Commit
.
truncate_sha
(
commit
.
sha
)
}
it
'tags this commit'
do
add_note
(
"/tag
#{
tag_name
}
#{
tag_message
}
"
)
expect
(
page
).
to
have_content
'Commands applied'
expect
(
page
).
to
have_content
"tagged commit
#{
truncated_commit_sha
}
"
expect
(
page
).
to
have_content
tag_name
visit
project_tag_path
(
project
,
tag_name
)
expect
(
page
).
to
have_content
tag_name
expect
(
page
).
to
have_content
tag_message
expect
(
page
).
to
have_content
truncated_commit_sha
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