Sha256: a3340d707933e9f2245b7cb19e6d0eb5f3d5435e8a99341d10e0b40d3a88d6e4

Contents?: true

Size: 321 Bytes

Versions: 17

Compression:

Stored size: 321 Bytes

Contents

require 'spec_helper'

FactoryGirl.factories.map(&:name).each do |factory_name|
  describe "factory #{factory_name}" do
    it 'is valid' do
      factory = build(factory_name)

      if factory.respond_to?(:valid?)
        expect(factory).to be_valid, factory.errors.full_messages.join(',')
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
blueberry_rails-0.3.10 templates/spec/factories_spec.rb
blueberry_rails-0.3.9 templates/spec/factories_spec.rb
blueberry_rails-0.3.8 templates/factories_spec.rb
blueberry_rails-0.3.7 templates/factories_spec.rb
blueberry_rails-0.3.6 templates/factories_spec.rb
blueberry_rails-0.3.5 templates/factories_spec.rb
blueberry_rails-0.3.4 templates/factories_spec.rb
blueberry_rails-0.3.3 templates/factories_spec.rb
blueberry_rails-0.3.1 templates/factories_spec.rb
blueberry_rails-0.3.0 templates/factories_spec.rb
blueberry_rails-0.2.4 templates/factories_spec.rb
blueberry_rails-0.2.3 templates/factories_spec.rb
blueberry_rails-0.2.2 templates/factories_spec.rb
blueberry_rails-0.2.1 templates/factories_spec.rb
blueberry_rails-0.2.0 templates/factories_spec.rb
blueberry_rails-0.1.2 templates/factories_spec.rb
blueberry_rails-0.1.1 templates/factories_spec.rb