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
0b9fbb1d
Commit
0b9fbb1d
authored
Feb 28, 2019
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update activity spec
parent
d9e88b6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
spec/features/dashboard/activity_spec.rb
spec/features/dashboard/activity_spec.rb
+17
-2
No files found.
spec/features/dashboard/activity_spec.rb
View file @
0b9fbb1d
...
@@ -39,6 +39,8 @@ describe 'Dashboard > Activity' do
...
@@ -39,6 +39,8 @@ describe 'Dashboard > Activity' do
event
event
end
end
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let!
(
:merged_event
)
do
let!
(
:merged_event
)
do
create
(
:event
,
:merged
,
project:
project
,
target:
merge_request
,
author:
user
)
create
(
:event
,
:merged
,
project:
project
,
target:
merge_request
,
author:
user
)
end
end
...
@@ -59,6 +61,10 @@ describe 'Dashboard > Activity' do
...
@@ -59,6 +61,10 @@ describe 'Dashboard > Activity' do
create
(
:event
,
:closed
,
project:
project
,
target:
milestone
,
author:
user
)
create
(
:event
,
:closed
,
project:
project
,
target:
milestone
,
author:
user
)
end
end
let!
(
:issue_event
)
do
create
(
:event
,
:created
,
project:
project
,
target:
issue
,
author:
user
)
end
before
do
before
do
project
.
add_maintainer
(
user
)
project
.
add_maintainer
(
user
)
...
@@ -74,6 +80,8 @@ describe 'Dashboard > Activity' do
...
@@ -74,6 +80,8 @@ describe 'Dashboard > Activity' do
expect
(
page
).
to
have_content
(
'closed'
)
expect
(
page
).
to
have_content
(
'closed'
)
expect
(
page
).
to
have_content
(
'commented on'
)
expect
(
page
).
to
have_content
(
'commented on'
)
expect
(
page
).
to
have_content
(
'closed milestone'
)
expect
(
page
).
to
have_content
(
'closed milestone'
)
expect
(
page
).
to
have_content
(
'opened issue'
)
end
end
end
end
...
@@ -87,6 +95,7 @@ describe 'Dashboard > Activity' do
...
@@ -87,6 +95,7 @@ describe 'Dashboard > Activity' do
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'opened issue'
)
end
end
end
end
...
@@ -100,6 +109,8 @@ describe 'Dashboard > Activity' do
...
@@ -100,6 +109,8 @@ describe 'Dashboard > Activity' do
expect
(
page
).
to
have_content
(
'accepted'
)
expect
(
page
).
to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'opened issue'
)
end
end
end
end
...
@@ -111,9 +122,10 @@ describe 'Dashboard > Activity' do
...
@@ -111,9 +122,10 @@ describe 'Dashboard > Activity' do
expect
(
page
).
not_to
have_content
(
'pushed new branch'
)
expect
(
page
).
not_to
have_content
(
'pushed new branch'
)
expect
(
page
).
not_to
have_content
(
'joined'
)
expect
(
page
).
not_to
have_content
(
'joined'
)
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
to
have_content
(
'closed'
)
expect
(
page
).
not_
to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
to
have_content
(
'closed milestone'
)
expect
(
page
).
not_to
have_content
(
'closed milestone'
)
expect
(
page
).
to
have_content
(
'opened issue'
)
end
end
end
end
...
@@ -127,6 +139,7 @@ describe 'Dashboard > Activity' do
...
@@ -127,6 +139,7 @@ describe 'Dashboard > Activity' do
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
to
have_content
(
'commented on'
)
expect
(
page
).
to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'opened issue'
)
end
end
end
end
...
@@ -140,6 +153,7 @@ describe 'Dashboard > Activity' do
...
@@ -140,6 +153,7 @@ describe 'Dashboard > Activity' do
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'opened issue'
)
end
end
end
end
...
@@ -155,6 +169,7 @@ describe 'Dashboard > Activity' do
...
@@ -155,6 +169,7 @@ describe 'Dashboard > Activity' do
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'accepted'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'closed'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'commented on'
)
expect
(
page
).
not_to
have_content
(
'opened issue'
)
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