From b9c44d851e806f812c548dc0de43d3002c2d88a5 Mon Sep 17 00:00:00 2001 From: Jamie Winsor Date: Sun, 4 Sep 2011 15:10:00 -0700 Subject: use let instead of let! when we can lazily load these fixtures --- spec/requests/refinery/blog/posts_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/requests') 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) -- cgit v1.2.3