Permalink
Browse files

Fix spec that verifies that weird-field-named PDFs work.

  • Loading branch information...
1 parent 6dc9c42 commit 6e95696eda12aa6eb17d522c9d6e7b8a854c7c9a @greggersh greggersh committed Nov 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/pdf_filler_spec.rb
@@ -45,7 +45,7 @@ def app
context "when the PDF file has weird field names" do
it "should still fill the fields properly" do
- post "/fill", :pdf => "./spec/ss-5.pdf", "topmostSubform[0].Page5[0].firstname[0]".to_sym => "_MYGOV_FILLABLE_"
+ post "/fill", :pdf => "./spec/ss-5.pdf", "topmostSubform%5B0%5D.Page5%5B0%5D.firstname%5B0%5D" => "_MYGOV_FILLABLE_"
compressed = Tempfile.new(['pdf', '.pdf'], nil , :encoding => 'ASCII-8BIT')
uncompressed = Tempfile.new( ['pdf', '.pdf'], nil , :encoding => 'ASCII-8BIT' )
compressed << last_response.body

0 comments on commit 6e95696

Please sign in to comment.