2014-09-02 18:07:02 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
FactoryGirl.factories.map(&:name).each do |factory_name|
|
|
|
|
describe "#{factory_name} factory" do
|
|
|
|
it 'should be valid' do
|
2015-04-26 12:48:37 +05:30
|
|
|
expect(build(factory_name)).to be_valid
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|