Sha256: 1e359a4d9438c1c5446b36d6b09d5ff650107902fec3fe785aefdc2c1fc3d17a

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

require 'spec_helper'

describe 'factories' do
  FactoryGirl.factories.map(&:name).each do |factory_name|
    specify "#{factory_name} factory is valid", :factory do
      factory = build(factory_name)
      expect(factory).to be_valid if factory.respond_to?(:valid?)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stationed-0.6.0 lib/stationed/generators/templates/factories_spec.rb
stationed-0.5.0 lib/stationed/generators/templates/factories_spec.rb
stationed-0.4.0 lib/stationed/generators/templates/factories_spec.rb
stationed-0.3.0 lib/stationed/generators/templates/factories_spec.rb
stationed-0.2.0 lib/stationed/generators/templates/factories_spec.rb
stationed-0.1.0 lib/stationed/generators/templates/factories_spec.rb
stationed-0.0.1 lib/stationed/generators/templates/factories_spec.rb