Commit eee4627d
Changed files (2)
app
controllers
spec
controllers
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
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