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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
b2e57880
Commit
b2e57880
authored
May 04, 2017
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature spec for system notes
parent
ac99441d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
spec/features/issuables/system_notes_spec.rb
spec/features/issuables/system_notes_spec.rb
+30
-0
No files found.
spec/features/issuables/system_notes_spec.rb
0 → 100644
View file @
b2e57880
require
'spec_helper'
describe
'issuable system notes'
,
feature:
true
do
let
(
:issue
)
{
create
(
:issue
,
project:
project
,
author:
user
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
:simple
,
source_project:
project
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
project
.
add_user
(
user
,
:master
)
login_as
(
user
)
end
[
:issue
,
:merge_request
].
each
do
|
issuable_type
|
context
"when
#{
issuable_type
}
"
do
before
do
issuable
=
issuable_type
==
:issue
?
issue
:
merge_request
visit
(
edit_polymorphic_path
([
project
.
namespace
.
becomes
(
Namespace
),
project
,
issuable
]))
end
it
'adds system note "description changed"'
do
fill_in
(
"
#{
issuable_type
}
_description"
,
with:
'hello world'
)
click_button
(
'Save changes'
)
expect
(
page
).
to
have_content
(
"
#{
user
.
name
}
#{
user
.
to_reference
}
changed the description"
)
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