Don't test if invalid key is valid.

This commit is contained in:
Marin Jankovski 2012-09-25 15:54:07 +02:00
parent 012dc2278c
commit 7284c58c5f

View file

@ -1,6 +1,7 @@
require 'spec_helper'
FactoryGirl.factories.map(&:name).each do |factory_name|
next if :key_with_a_space_in_the_middle == factory_name
describe "#{factory_name} factory" do
it 'should be valid' do
build(factory_name).should be_valid