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
c26f4a07
Commit
c26f4a07
authored
Jul 21, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `empty_project` where possible in spec/features/dashboard
parent
99818145
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
spec/features/dashboard/archived_projects_spec.rb
spec/features/dashboard/archived_projects_spec.rb
+1
-1
spec/features/dashboard/datetime_on_tooltips_spec.rb
spec/features/dashboard/datetime_on_tooltips_spec.rb
+1
-1
spec/features/dashboard/label_filter_spec.rb
spec/features/dashboard/label_filter_spec.rb
+2
-2
spec/features/dashboard/milestone_filter_spec.rb
spec/features/dashboard/milestone_filter_spec.rb
+1
-1
spec/features/dashboard/todos/target_state_spec.rb
spec/features/dashboard/todos/target_state_spec.rb
+1
-1
spec/features/dashboard/todos/todos_spec.rb
spec/features/dashboard/todos/todos_spec.rb
+2
-2
spec/features/dashboard/user_filters_projects_spec.rb
spec/features/dashboard/user_filters_projects_spec.rb
+2
-2
No files found.
spec/features/dashboard/archived_projects_spec.rb
View file @
c26f4a07
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
RSpec
.
describe
'Dashboard Archived Project'
do
let
(
:user
)
{
create
:user
}
let
(
:project
)
{
create
:project
}
let
(
:archived_project
)
{
create
(
:project
,
:archived
)
}
let
(
:archived_project
)
{
create
(
:
empty_
project
,
:archived
)
}
before
do
project
.
team
<<
[
user
,
:master
]
...
...
spec/features/dashboard/datetime_on_tooltips_spec.rb
View file @
c26f4a07
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Tooltips on .timeago dates'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
name:
'test'
,
namespace:
user
.
namespace
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
name:
'test'
,
namespace:
user
.
namespace
)
}
let
(
:created_date
)
{
Date
.
yesterday
.
to_time
}
let
(
:expected_format
)
{
created_date
.
in_time_zone
.
strftime
(
'%b %-d, %Y %l:%M%P'
)
}
...
...
spec/features/dashboard/label_filter_spec.rb
View file @
c26f4a07
...
...
@@ -2,8 +2,8 @@ require 'spec_helper'
describe
'Dashboard > label filter'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
name:
'test'
,
namespace:
user
.
namespace
)
}
let
(
:project2
)
{
create
(
:project
,
name:
'test2'
,
path:
'test2'
,
namespace:
user
.
namespace
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
name:
'test'
,
namespace:
user
.
namespace
)
}
let
(
:project2
)
{
create
(
:
empty_
project
,
name:
'test2'
,
path:
'test2'
,
namespace:
user
.
namespace
)
}
let
(
:label
)
{
create
(
:label
,
title:
'bug'
,
color:
'#ff0000'
)
}
let
(
:label2
)
{
create
(
:label
,
title:
'bug'
)
}
...
...
spec/features/dashboard/milestone_filter_spec.rb
View file @
c26f4a07
...
...
@@ -4,7 +4,7 @@ feature 'Dashboard > milestone filter', :js do
include
FilterItemSelectHelper
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
name:
'test'
,
namespace:
user
.
namespace
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
name:
'test'
,
namespace:
user
.
namespace
)
}
let
(
:milestone
)
{
create
(
:milestone
,
title:
'v1.0'
,
project:
project
)
}
let
(
:milestone2
)
{
create
(
:milestone
,
title:
'v2.0'
,
project:
project
)
}
let!
(
:issue
)
{
create
:issue
,
author:
user
,
project:
project
,
milestone:
milestone
}
...
...
spec/features/dashboard/todos/target_state_spec.rb
View file @
c26f4a07
...
...
@@ -3,7 +3,7 @@ require 'rails_helper'
feature
'Dashboard > Todo target states'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:author
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
:public
)
}
before
do
sign_in
(
user
)
...
...
spec/features/dashboard/todos/todos_spec.rb
View file @
c26f4a07
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
feature
'Dashboard Todos'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:author
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
:public
)
}
let
(
:issue
)
{
create
(
:issue
,
due_date:
Date
.
today
)
}
context
'User does not have todos'
do
...
...
@@ -212,7 +212,7 @@ feature 'Dashboard Todos' do
note1
=
create
(
:note_on_issue
,
note:
"Hello
#{
label1
.
to_reference
(
format: :name
)
}
"
,
noteable_id:
issue
.
id
,
noteable_type:
'Issue'
,
project:
issue
.
project
)
create
(
:todo
,
:mentioned
,
project:
project
,
target:
issue
,
user:
user
,
note_id:
note1
.
id
)
project2
=
create
(
:project
,
:public
)
project2
=
create
(
:
empty_
project
,
:public
)
label2
=
create
(
:label
,
project:
project2
)
issue2
=
create
(
:issue
,
project:
project2
)
note2
=
create
(
:note_on_issue
,
note:
"Test
#{
label2
.
to_reference
(
format: :name
)
}
"
,
noteable_id:
issue2
.
id
,
noteable_type:
'Issue'
,
project:
project2
)
...
...
spec/features/dashboard/user_filters_projects_spec.rb
View file @
c26f4a07
...
...
@@ -2,9 +2,9 @@ require 'spec_helper'
describe
'Dashboard > User filters projects'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
name:
'Victorialand'
,
namespace:
user
.
namespace
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
name:
'Victorialand'
,
namespace:
user
.
namespace
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:project2
)
{
create
(
:project
,
name:
'Treasure'
,
namespace:
user2
.
namespace
)
}
let
(
:project2
)
{
create
(
:
empty_
project
,
name:
'Treasure'
,
namespace:
user2
.
namespace
)
}
before
do
project
.
team
<<
[
user
,
:master
]
...
...
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