Welcome to mirror list, hosted at ThFree Co, Russian Federation.

factories_spec.rb « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: caf9ac9a9d3e15907ac609d204c1fa33156cc22d (plain)
1
2
3
4
5
6
7
8
9
10
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
    end
  end
end