Skip to content
Browse files

Last commit worked, forgot admin/posts spec though.

  • Loading branch information...
1 parent 5c3c2c2 commit 6162ca85ee57e29e79f999eb620d23523e1c6a0d @xaviershay xaviershay committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/controllers/admin/posts_controller_spec.rb
View
4 spec/controllers/admin/posts_controller_spec.rb
@@ -147,7 +147,7 @@ def do_delete
describe 'handling DELETE to destroy, JSON request' do
before(:each) do
@post = Post.new(:title => 'A post')
- @post.stub!(:destroy_with_undo).and_return(mock("undo_item", :description => 'hello'))
+ @post.stub!(:destroy_with_undo).and_return(mock(UndoItem, :description => 'hello'))
Post.stub!(:find).and_return(@post)
end
@@ -157,7 +157,7 @@ def do_delete
end
it("deletes post") do
- @post.should_receive(:destroy_with_undo).and_return(mock("undo_item", :description => 'hello'))
+ @post.should_receive(:destroy_with_undo).and_return(mock(UndoItem, :description => 'hello'))
do_delete
end

0 comments on commit 6162ca8

Please sign in to comment.
Something went wrong with that request. Please try again.