From 2ef6906763f81b88a2a82e84e78e0ba3918c22a8 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Tue, 7 Jan 2014 23:46:47 +0000 Subject: [PATCH] Factories now under test --- spec/factories_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/factories_spec.rb 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 -- 2.34.1