Created
July 31, 2009 19:05
-
-
Save jerodsanto/159378 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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