Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
65f002ea8f5c
Commit
f1c6bd8d
authored
Sep 25, 2012
by
Robert Speicher
Browse files
Factories - Format project path and code
parent
006855b7da22
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/factories.rb
View file @
65f002ea
...
...
@@ -42,8 +42,8 @@ def self.attributes(type, *args)
factory
:project
do
sequence
(
:name
)
{
|
n
|
"project
#{
n
}
"
}
path
{
name
}
code
{
name
}
path
{
name
.
downcase
.
gsub
(
/\s/
,
'_'
)
}
code
{
name
.
downcase
.
gsub
(
/\s/
,
'_'
)
}
owner
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