diff options
author | Jaakko Kantojärvi <jaakko@n-1.fi> | 2013-02-15 11:31:05 +0200 |
---|---|---|
committer | Jaakko Kantojärvi <jaakko@n-1.fi> | 2013-02-17 21:31:20 +0200 |
commit | 27f4cf75422d2995fdd403ee9562ab30afe85536 (patch) | |
tree | e72260ed533a242d3203eb6c1c628f2238ba6f59 /spec/factories_spec.rb | |
parent | 6fd88b8cbba62d1af4e249cee455a30df0eb0b1b (diff) | |
download | gitlab-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.rb | 5 |
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) |