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
Tatuya Kamada
gitlab-ce
Commits
0bc90940
Commit
0bc90940
authored
Aug 28, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deploy_key and personal_key factories
parent
c9c1f76e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
spec/factories.rb
spec/factories.rb
+8
-0
spec/factories_spec.rb
spec/factories_spec.rb
+8
-0
No files found.
spec/factories.rb
View file @
0bc90940
...
...
@@ -76,6 +76,14 @@ FactoryGirl.define do
factory
:key
do
title
key
{
File
.
read
(
File
.
join
(
Rails
.
root
,
"db"
,
"pkey.example"
))
}
factory
:deploy_key
do
project
end
factory
:personal_key
do
user
end
end
factory
:milestone
do
...
...
spec/factories_spec.rb
View file @
0bc90940
...
...
@@ -49,6 +49,14 @@ describe "Factories" do
it
"builds a valid instance"
do
build
(
:key
).
should
be_valid
end
it
"builds a valid deploy key instance"
do
build
(
:deploy_key
).
should
be_valid
end
it
"builds a valid personal key instance"
do
build
(
:personal_key
).
should
be_valid
end
end
describe
'Milestone'
do
...
...
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