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
17e9207d
Commit
17e9207d
authored
Jan 19, 2013
by
Andrey Kumanyaev
Committed by
Dmitriy Zaporozhets
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add user team factories
parent
3a0d4865
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
spec/factories/user_team_project_relationships.rb
spec/factories/user_team_project_relationships.rb
+9
-0
spec/factories/user_team_user_relationships.rb
spec/factories/user_team_user_relationships.rb
+10
-0
spec/factories/user_teams.rb
spec/factories/user_teams.rb
+9
-0
No files found.
spec/factories/user_team_project_relationships.rb
0 → 100644
View file @
17e9207d
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl
.
define
do
factory
:user_team_project_relationship
do
project_id
1
user_team_id
1
greatest_access
1
end
end
spec/factories/user_team_user_relationships.rb
0 → 100644
View file @
17e9207d
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl
.
define
do
factory
:user_team_user_relationship
do
user_id
1
user_team_id
1
group_admin
false
permission
1
end
end
spec/factories/user_teams.rb
0 → 100644
View file @
17e9207d
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl
.
define
do
factory
:user_team
do
sequence
(
:name
)
{
|
n
|
"team
#{
n
}
"
}
path
{
name
.
downcase
.
gsub
(
/\s/
,
'_'
)
}
owner
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