summaryrefslogtreecommitdiff
path: root/spec/factories_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-08-28 06:57:00 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-08-28 21:22:49 -0400
commit0bc909405852135d7f98440193830eba664ea122 (patch)
treee611e92aad062879d109ef00b23ad1e0f2344070 /spec/factories_spec.rb
parentc9c1f76e002d899dd6765c4c1630697cc5068f27 (diff)
downloadgitlab-ce-0bc909405852135d7f98440193830eba664ea122.tar.gz
Add deploy_key and personal_key factories
Diffstat (limited to 'spec/factories_spec.rb')
-rw-r--r--spec/factories_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories_spec.rb b/spec/factories_spec.rb
index 126a5b2309f..5760aad423b 100644
--- a/spec/factories_spec.rb
+++ b/spec/factories_spec.rb
@@ -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