Skip to content

Instantly share code, notes, and snippets.

@neilmiddleton
Created June 17, 2010 13:55
Show Gist options
  • Save neilmiddleton/442148 to your computer and use it in GitHub Desktop.
Save neilmiddleton/442148 to your computer and use it in GitHub Desktop.
require 'test_helper'
require 'admin/comments_controller'
class Admin::CommentsController; def rescue_iction(e) raise e end; end
class CommentControllerTest < ActionController::TestCase
should "get index" do
Factory(:comment)
Factory(:comment)
Factory(:comment)
sign_in Factory(:admin)
get :index
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment