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
0ef2c8df
Commit
0ef2c8df
authored
Nov 22, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use factories to create project/group membership on specs
parent
b667d834
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/features/groups/members/sorting_spec.rb
spec/features/groups/members/sorting_spec.rb
+2
-2
spec/features/projects/members/sorting_spec.rb
spec/features/projects/members/sorting_spec.rb
+2
-2
No files found.
spec/features/groups/members/sorting_spec.rb
View file @
0ef2c8df
...
...
@@ -6,8 +6,8 @@ feature 'Groups > Members > Sorting', feature: true do
let
(
:group
)
{
create
(
:group
)
}
background
do
group
.
add_owner
(
owner
)
group
.
add_developer
(
developer
)
create
(
:group_member
,
:owner
,
user:
owner
,
group:
group
,
created_at:
5
.
days
.
ago
)
create
(
:group_member
,
:developer
,
user:
developer
,
group:
group
,
created_at:
3
.
days
.
ago
)
login_as
(
owner
)
end
...
...
spec/features/projects/members/sorting_spec.rb
View file @
0ef2c8df
...
...
@@ -6,8 +6,8 @@ feature 'Projects > Members > Sorting', feature: true do
let
(
:project
)
{
create
(
:empty_project
)
}
background
do
project
.
team
<<
[
master
,
:master
]
project
.
team
<<
[
developer
,
:developer
]
create
(
:project_member
,
:master
,
user:
master
,
project:
project
,
created_at:
5
.
days
.
ago
)
create
(
:project_member
,
:developer
,
user:
developer
,
project:
project
,
created_at:
3
.
days
.
ago
)
login_as
(
master
)
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