diff options
| author | mo k <mo@mokhan.ca> | 2012-06-09 17:07:57 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-06-09 17:07:57 -0600 |
| commit | eee4627da61e0adfc2edaa0e6d1f5ef6545254eb (patch) | |
| tree | 78a1742294dfc590379187472a879744e55fc782 | |
| parent | 8c973ebf103469831e2be9102e148deb10091cba (diff) | |
fix typo
| -rw-r--r-- | app/controllers/comments_controller.rb | 2 | ||||
| -rw-r--r-- | spec/controllers/comments_controller_spec.rb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 4848c972..5317576b 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -13,7 +13,7 @@ class CommentsController < ApplicationController redirect_to creation_path(creation) else flash[:error] = "Ooops... we couldn't save your comment at this time." - render 'new' + #render 'creations/new' end end end diff --git a/spec/controllers/comments_controller_spec.rb b/spec/controllers/comments_controller_spec.rb index 0d31dad6..ba8c4d4d 100644 --- a/spec/controllers/comments_controller_spec.rb +++ b/spec/controllers/comments_controller_spec.rb @@ -4,13 +4,14 @@ require 'fakes-rspec' describe CommentsController do let(:sut) { CommentsController.new } + describe 'when commenting on a creation' do let(:comment) { fake } it "should save the new comment" do comment.should have_received(:save) end - it "should displa a message indicated that the comment was saved" do + it "should display a message indicated that the comment was saved" do @flash_hash[:notice].should_not be_nil end it "should not display an errors" do |
