gitlabhq/spec/factories_spec.rb

11 lines
266 B
Ruby
Raw Normal View History

require 'spec_helper'
2012-09-06 16:52:01 +02:00
FactoryGirl.factories.map(&:name).each do |factory_name|
2012-09-25 15:54:07 +02:00
next if :key_with_a_space_in_the_middle == factory_name
2012-09-06 16:52:01 +02:00
describe "#{factory_name} factory" do
it 'should be valid' do
build(factory_name).should be_valid
end
end
end