Sha256: 4f5becefe56f53bdc042e24f4774f20e40e9b27825116ef50b8f5d5e16cfa2e6

Contents?: true

Size: 299 Bytes

Versions: 8

Compression:

Stored size: 299 Bytes

Contents

require 'spec_helper'

FactoryGirl.factories.map(&:name).each do |factory_name|
  describe "The #{factory_name} factory" do
    it 'should be valid' do
      instance = FactoryGirl.build(factory_name)
      instance.valid?.should be_true, instance.errors.full_messages.to_sentence
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fooltip-0.0.13 spec/factories_spec.rb
fooltip-0.0.12 spec/factories_spec.rb
fooltip-0.0.11 spec/factories_spec.rb
fooltip-0.0.10 spec/factories_spec.rb
fooltip-0.0.9 spec/factories_spec.rb
fooltip-0.0.8 spec/factories_spec.rb
fooltip-0.0.7 spec/factories_spec.rb
fooltip-0.0.6 spec/factories_spec.rb