projects
/
feedcatcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1c293
)
Factories now under test
author
Neil Smith
<neil.git@njae.me.uk>
Tue, 7 Jan 2014 23:46:47 +0000
(23:46 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Tue, 7 Jan 2014 23:46:47 +0000
(23:46 +0000)
spec/factories_spec.rb
[new file with mode: 0644]
patch
|
blob
diff --git a/spec/factories_spec.rb
b/spec/factories_spec.rb
new file mode 100644
(file)
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