diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-09-04 15:10:00 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-09-04 15:10:00 -0700 |
commit | b9c44d851e806f812c548dc0de43d3002c2d88a5 (patch) | |
tree | d114279b5941e210d418e454777a344176c5d7e4 /spec/requests | |
parent | 4d4ae4e682954d7430ab8089ee2671638778cf78 (diff) | |
download | refinerycms-blog-b9c44d851e806f812c548dc0de43d3002c2d88a5.tar.gz refinerycms-blog-b9c44d851e806f812c548dc0de43d3002c2d88a5.tar.bz2 refinerycms-blog-b9c44d851e806f812c548dc0de43d3002c2d88a5.zip |
use let instead of let! when we can lazily load these fixtures
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/refinery/blog/posts_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/refinery/blog/posts_spec.rb b/spec/requests/refinery/blog/posts_spec.rb index 4017d03..7c5a90f 100644 --- a/spec/requests/refinery/blog/posts_spec.rb +++ b/spec/requests/refinery/blog/posts_spec.rb @@ -42,7 +42,7 @@ module Refinery describe "#show" do context "when has no comments" do - let!(:blog_post) { FactoryGirl.create(:blog_post) } + let(:blog_post) { FactoryGirl.create(:blog_post) } it "should display the blog post" do visit blog_post_path(blog_post) @@ -53,7 +53,7 @@ module Refinery end context "when has approved comments" do - let!(:approved_comment) { FactoryGirl.create(:approved_comment) } + let(:approved_comment) { FactoryGirl.create(:approved_comment) } it "should display the comments" do visit blog_post_path(approved_comment.post) @@ -64,7 +64,7 @@ module Refinery end context "when has rejected comments" do - let!(:rejected_comment) { FactoryGirl.create(:rejected_comment) } + let(:rejected_comment) { FactoryGirl.create(:rejected_comment) } it "should not display the comments" do visit blog_post_path(rejected_comment.post) @@ -74,7 +74,7 @@ module Refinery end context "when has new comments" do - let!(:blog_comment) { FactoryGirl.create(:blog_comment) } + let(:blog_comment) { FactoryGirl.create(:blog_comment) } it "should not display the comments" do visit blog_post_path(blog_comment.post) |