Browse files

Update CommentsController spec

  • Loading branch information...
1 parent 149e687 commit e26875f68a8cd23a73982fca6648b6e95ef77ae1 @sickill sickill committed Apr 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/controllers/api/comments_controller_spec.rb
View
8 spec/controllers/api/comments_controller_spec.rb
@@ -80,8 +80,8 @@ def dispatch
comment.stub(:user).and_return(user)
end
- it "calls delete on comment" do
- comment.should_receive(:delete)
+ it "calls destroy on comment" do
+ comment.should_receive(:destroy)
delete :destroy, :id => 1, :format => :json
end
@@ -94,8 +94,8 @@ def dispatch
comment.stub(:user).and_return(other_user)
end
- it "doesn't call delete on comment" do
- comment.should_not_receive(:delete)
+ it "doesn't call destroy on comment" do
+ comment.should_not_receive(:destroy)
delete :destroy, :id => 1, :format => :json
end

0 comments on commit e26875f

Please sign in to comment.