Commit dc22dd8a authored by Valeriy Sizov's avatar Valeriy Sizov

Factories spec refactoring after #1616

parent b5f9d29f
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment