diff options
Diffstat (limited to 'spec/models/refinery/blog_comment_spec.rb')
-rw-r--r-- | spec/models/refinery/blog_comment_spec.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/models/refinery/blog_comment_spec.rb b/spec/models/refinery/blog_comment_spec.rb new file mode 100644 index 0000000..455ea4a --- /dev/null +++ b/spec/models/refinery/blog_comment_spec.rb @@ -0,0 +1,23 @@ +require 'spec_helper' +Dir[File.expand_path('../../../features/support/factories/*.rb', __FILE__)].each{|factory| require factory} + +module Refinery + describe BlogComment do + + context "wiring up" do + + before(:each) do + @comment = Factory.create(: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 +end |