Permalink
Browse files

7.1) Boilerplate model specs for assignment

  • Loading branch information...
1 parent 3e23fea commit 3a504c8dc6d888ddfad7224a90afa8f715c810d0 @dimroc dimroc committed May 18, 2012
@@ -0,0 +1,4 @@
+Fabricator(:employee) do
+ name { Faker::Name.name }
+ # TODO: populate other values
+end
@@ -0,0 +1,16 @@
+require 'spec_helper'
+
+describe Employee do
+ context "validations" do
+ it { should validate_presence_of :name }
+ #TODO: Add validations for remaining fields
+ end
+
+ context "associations" do
+ #TODO: Add specs to check for associations
+ end
+
+ context "fabricators" do
+ #TODO: Add specs to ensure that fabricators create valid objects
+ end
+end
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+describe Role do
+ context "validations" do
+ #TODO: Add validations ensuring presence of all fields
+ end
+
+ context "associations" do
+ #TODO: Add specs to check for associations
+ end
+
+ context "fabricators" do
+ #TODO: Add specs to ensure that fabricators create valid objects
+ end
+end

0 comments on commit 3a504c8

Please sign in to comment.