diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-03 13:33:31 +0300 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-03 13:33:31 +0300 |
commit | dc22dd8aded81f10b8b9fc06f8c423043aa01d0a (patch) | |
tree | cca44722fd57ea7e9006e2f943a5ca2160849003 /spec/factories_spec.rb | |
parent | b5f9d29f55e1fbf302bd824e2d08c0885caa15d7 (diff) | |
download | gitlab-ce-dc22dd8aded81f10b8b9fc06f8c423043aa01d0a.tar.gz |
Factories spec refactoring after #1616
Diffstat (limited to 'spec/factories_spec.rb')
-rw-r--r-- | spec/factories_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/factories_spec.rb b/spec/factories_spec.rb index caf9ac9a9d3..5ee7354688a 100644 --- a/spec/factories_spec.rb +++ b/spec/factories_spec.rb @@ -1,7 +1,9 @@ require 'spec_helper' +INVALID_FACTORIES = [:key_with_a_space_in_the_middle] + FactoryGirl.factories.map(&:name).each do |factory_name| - next if :key_with_a_space_in_the_middle == factory_name + next if INVALID_FACTORIES.include?(factory_name) describe "#{factory_name} factory" do it 'should be valid' do build(factory_name).should be_valid |