BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
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