summaryrefslogtreecommitdiff
path: root/spec/factories_spec.rb
diff options
context:
space:
mode:
authorJaakko Kantojärvi <jaakko@n-1.fi>2013-02-15 11:31:05 +0200
committerJaakko Kantojärvi <jaakko@n-1.fi>2013-02-17 21:31:20 +0200
commit27f4cf75422d2995fdd403ee9562ab30afe85536 (patch)
treee72260ed533a242d3203eb6c1c628f2238ba6f59 /spec/factories_spec.rb
parent6fd88b8cbba62d1af4e249cee455a30df0eb0b1b (diff)
downloadgitlab-ce-27f4cf75422d2995fdd403ee9562ab30afe85536.tar.gz
Tests to validate that invalid keys are rejected
Diffstat (limited to 'spec/factories_spec.rb')
-rw-r--r--spec/factories_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/factories_spec.rb b/spec/factories_spec.rb
index 5ee7354688a..8360477d8fe 100644
--- a/spec/factories_spec.rb
+++ b/spec/factories_spec.rb
@@ -1,6 +1,9 @@
require 'spec_helper'
-INVALID_FACTORIES = [:key_with_a_space_in_the_middle]
+INVALID_FACTORIES = [
+ :key_with_a_space_in_the_middle,
+ :invalid_key,
+]
FactoryGirl.factories.map(&:name).each do |factory_name|
next if INVALID_FACTORIES.include?(factory_name)