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: 7f887be9ce904c541e35c04936d269922c2e7f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'spec_helper'

INVALID_FACTORIES = [
    :key_with_a_space_in_the_middle,
    :invalid_key,
]


FactoryGirl.factories.map(&:name).each do |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
    end
  end
end