Skip to content

Commit

Permalink
Argh s/model/mock_model/g
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviershay committed Nov 13, 2011
1 parent 6162ca8 commit ed9ab61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/admin/posts_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(UndoItem, :description => 'hello'))
@post.stub!(:destroy_with_undo).and_return(mock_model(UndoItem, :description => 'hello'))
Post.stub!(:find).and_return(@post)
end

Expand All @@ -157,7 +157,7 @@ def do_delete
end

it("deletes post") do
@post.should_receive(:destroy_with_undo).and_return(mock(UndoItem, :description => 'hello'))
@post.should_receive(:destroy_with_undo).and_return(mock_model(UndoItem, :description => 'hello'))
do_delete
end

Expand Down

0 comments on commit ed9ab61

Please sign in to comment.