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
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
factories.rb
spec/factories.rb
+8
-0
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