Sha256: 936e8c3e000bf59b82bc4dc3c66629eec7400427b7c24b9ec6d056a8048fe886

Contents?: true

Size: 373 Bytes

Versions: 18

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'

describe 'validate FactoryGirl factories' do
  FactoryGirl.factories.each do |factory|
    context "with factory for :#{factory.name}" do
      subject { FactoryGirl.build(factory.name) }

      it 'is valid' do
        is_valid = subject.valid?
        expect(is_valid).to be_true, subject.errors.full_messages.join(',')
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
bretels-1.0.3 templates/factories_spec.rb
bretels-1.0.2 templates/factories_spec.rb
railslove-suspenders-0.1.3 templates/factories_spec.rb
railslove-suspenders-0.1.2 templates/factories_spec.rb
railslove-suspenders-0.1.1 templates/factories_spec.rb
bretels-1.0.1 templates/factories_spec.rb
railslove-suspenders-0.1.0 templates/factories_spec.rb
welaika-suspenders-1.2.10 templates/factories_spec.rb
suspenders-1.3.0 templates/factories_spec.rb
welaika-suspenders-1.2.9 templates/factories_spec.rb
welaika-suspenders-1.2.8 templates/factories_spec.rb
bretels-1.0.0 templates/factories_spec.rb
welaika-suspenders-1.2.7 templates/factories_spec.rb
welaika-suspenders-1.2.6 templates/factories_spec.rb
welaika-suspenders-1.2.5 templates/factories_spec.rb
welaika-suspenders-1.2.4 templates/factories_spec.rb
welaika-suspenders-1.2.3 templates/factories_spec.rb
suspenders-1.2.2 templates/factories_spec.rb