Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created July 31, 2009 19:05
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 jerodsanto/159378 to your computer and use it in GitHub Desktop.
Save jerodsanto/159378 to your computer and use it in GitHub Desktop.
require 'test_helper'
class DownloadsTest < ActionController::IntegrationTest
context "An existing donor" do
setup do
@donor = Factory(:donor)
end
should " be able to download a tax receipt" do
visit "/downloads/tax_receipt"
fill_in "email", :with => @donor.email
click_button "Submit"
assert_equal redirected_to, "/pdfs/taxreceipt.pdf"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment