summaryrefslogtreecommitdiff
path: root/spec/factories_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-09 17:16:01 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-04-11 17:12:10 -0400
commit273df6a44b5e4d501571bc2cb55dee1e5b57b290 (patch)
tree84883d61f559abf77b06ea97fbaab9e85202adfd /spec/factories_spec.rb
parent5155b9794db107bdb44297a7c01ced13581ee303 (diff)
downloadgitlab-ce-273df6a44b5e4d501571bc2cb55dee1e5b57b290.tar.gz
Remove the invalid key factories
They're only used once each, and they're easy to build in-place.
Diffstat (limited to 'spec/factories_spec.rb')
-rw-r--r--spec/factories_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/factories_spec.rb b/spec/factories_spec.rb
index c8e218d4d03..457859dedaf 100644
--- a/spec/factories_spec.rb
+++ b/spec/factories_spec.rb
@@ -1,12 +1,6 @@
require 'spec_helper'
-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)
describe "#{factory_name} factory" do
it 'should be valid' do
expect(build(factory_name)).to be_valid