diff options
author | Marc Remolt <marc.remolt@googlemail.com> | 2011-05-02 19:32:31 +0200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-05-09 10:47:10 +1200 |
commit | fe39fc757aece97ccff6158ecb90c8cb448bb779 (patch) | |
tree | b34581761a0aecedf9befd63ab94a48f236034fb /spec/models/blog_comment_spec.rb | |
parent | fa9e6dae6d8392cf35ab8aebe98c98ea339da63a (diff) | |
download | refinerycms-blog-fe39fc757aece97ccff6158ecb90c8cb448bb779.tar.gz refinerycms-blog-fe39fc757aece97ccff6158ecb90c8cb448bb779.tar.bz2 refinerycms-blog-fe39fc757aece97ccff6158ecb90c8cb448bb779.zip |
Model spec filenames should be singular
Diffstat (limited to 'spec/models/blog_comment_spec.rb')
-rw-r--r-- | spec/models/blog_comment_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/models/blog_comment_spec.rb b/spec/models/blog_comment_spec.rb new file mode 100644 index 0000000..a7c1d33 --- /dev/null +++ b/spec/models/blog_comment_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' +Dir[File.expand_path('../../../features/support/factories/*.rb', __FILE__)].each{|factory| require factory} + +describe BlogComment do + + 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 |