aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-03-16 13:30:51 +1100
committerHenare Degan <henare.degan@gmail.com>2013-03-16 13:30:51 +1100
commit2800c08f7579d37d3730d1589db14e6225061911 (patch)
tree42034cb174ecbd313766f36bd65dd55165bfcdd6 /spec/controllers/request_controller_spec.rb
parent5d6dfeae7999e3a2f65d05f4eb47ca15313cf339 (diff)
Reenable test now that we don't do HTML validation in the test suite
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb15
1 files changed, 6 insertions, 9 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index fa9a2326c..9fda29bf8 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -570,15 +570,12 @@ describe RequestController, "when showing one request" do
end
it "should generate valid HTML verson of PDF attachments" do
- pending "Disabled during Rails 3 upgrade: https://github.com/mysociety/alaveteli/issues/819"
-
- # TODO: Fix HTML validation and enable test
- # ir = info_requests(:fancy_dog_request)
- # receive_incoming_mail('incoming-request-pdf-attachment.email', ir.incoming_email)
- # ir.reload
- # get :get_attachment_as_html, :incoming_message_id => ir.incoming_messages[1].id, :id => ir.id, :part => 2, :file_name => 'fs_50379341.pdf.html', :skip_cache => 1
- # response.content_type.should == "text/html"
- # response.should contain "Walberswick Parish Council"
+ ir = info_requests(:fancy_dog_request)
+ receive_incoming_mail('incoming-request-pdf-attachment.email', ir.incoming_email)
+ ir.reload
+ get :get_attachment_as_html, :incoming_message_id => ir.incoming_messages[1].id, :id => ir.id, :part => 2, :file_name => 'fs_50379341.pdf.html', :skip_cache => 1
+ response.content_type.should == "text/html"
+ response.should contain "Walberswick Parish Council"
end
it "should not cause a reparsing of the raw email, even when the result would be a 404" do