Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wenbert
Created January 9, 2012 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wenbert/1582890 to your computer and use it in GitHub Desktop.
Save wenbert/1582890 to your computer and use it in GitHub Desktop.
class AllergiesControllerTest < ActionController::TestCase
setup do
@allergy = allergies(:one)
@allergy.patient = patients(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:allergies)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment