diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-04 16:51:18 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-04 16:51:18 +1100 |
commit | ac412859a4ba0ac625feb7d2f212213444b7ae41 (patch) | |
tree | 171078c1845d1ff89f83cccb7fa30095876369d0 /spec/controllers/request_controller_spec.rb | |
parent | 069ad6fbacd9420bbe0838cb8d8af1928a5dd40d (diff) |
Reload the object after reparsing (Rails 3.1 caching)
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 1f6b0a516..1daa239cc 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -607,6 +607,7 @@ describe RequestController, "when showing one request" do # ...but if we explicitly ask for attachments to be extracted, then they should be force = true ir.incoming_messages[1].parse_raw_email!(force) + ir.reload attachment = IncomingMessage.get_attachment_by_url_part_number(ir.incoming_messages[1].get_attachments_for_display, 2) attachment.body.should contain "Second hello" get :get_attachment_as_html, :incoming_message_id => ir.incoming_messages[1].id, :id => ir.id, :part => 2, :file_name => 'hello.txt.html', :skip_cache => 1 |