Skip to content

Instantly share code, notes, and snippets.

@febuiles
Created December 10, 2008 13:41
Show Gist options
  • Select an option

  • Save febuiles/34324 to your computer and use it in GitHub Desktop.

Select an option

Save febuiles/34324 to your computer and use it in GitHub Desktop.
require 'test_helper'
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:<%= table_name %>)
end
test "should get new" do
get :new
assert_response :success
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment