aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/blog_comments_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/blog_comments_spec.rb')
-rw-r--r--spec/models/blog_comments_spec.rb18
1 files changed, 15 insertions, 3 deletions
diff --git a/spec/models/blog_comments_spec.rb b/spec/models/blog_comments_spec.rb
index 43daf7d..145626d 100644
--- a/spec/models/blog_comments_spec.rb
+++ b/spec/models/blog_comments_spec.rb
@@ -1,8 +1,20 @@
require 'spec_helper'
describe BlogComment do
- it "initializes" do
- blog = BlogComment.new
- blog.should_not be_nil
+
+ context "wiring up" do
+
+ before(:each) do
+ @comment = Factory(:blog_comment)
+ end
+
+ it "saves" do
+ @comment.should_not be_nil
+ end
+
+ it "has a blog post" do
+ @comment.post.should_not be_nil
+ end
+
end
end \ No newline at end of file