Skip to content

Commit

Permalink
Update CommentsController spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Apr 9, 2012
1 parent 149e687 commit e26875f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/controllers/api/comments_controller_spec.rb
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit e26875f

Please sign in to comment.