diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-09 17:16:01 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-11 17:12:10 -0400 |
commit | 273df6a44b5e4d501571bc2cb55dee1e5b57b290 (patch) | |
tree | 84883d61f559abf77b06ea97fbaab9e85202adfd /spec/factories_spec.rb | |
parent | 5155b9794db107bdb44297a7c01ced13581ee303 (diff) | |
download | gitlab-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.rb | 6 |
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 |