From: Neil Smith Date: Tue, 7 Jan 2014 23:46:47 +0000 (+0000) Subject: Factories now under test X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=2ef6906763f81b88a2a82e84e78e0ba3918c22a8;p=feedcatcher.git Factories now under test --- diff --git a/spec/factories_spec.rb b/spec/factories_spec.rb new file mode 100644 index 0000000..20ef9b2 --- /dev/null +++ b/spec/factories_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +FactoryGirl.factories.map(&:name).each do |factory_name| + describe "The #{factory_name} factory" do + it 'is valid' do + expect(FactoryGirl.build(factory_name)).to be_valid + end + end +end