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
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
user_team_project_relationships.rb
spec/factories/user_team_project_relationships.rb
+9
-0
user_team_user_relationships.rb
spec/factories/user_team_user_relationships.rb
+10
-0
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