vidpush/spec/models/factories_spec.rb
2014-04-07 14:41:34 -04:00

14 lines
345 B
Ruby

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)
if factory.respond_to?(:valid?)
expect(factory).to be_valid, factory.errors.full_messages.join(',')
end
end
end
end