# Functional est for attachment download

**URL:** <https://www.ruby-forum.com/t/functional-est-for-attachment-download/151364>\
**Category:** Rails\
**Created:** [October 20, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/functional-est-for-attachment-download/151364 "2008-10-20T18:31:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vicky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b19c9b/32.png) [@vicky](https://www.ruby-forum.com/u/vicky)\
**Post date:** [October 20, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/functional-est-for-attachment-download/151364/1 "2008-10-20T18:31:54Z")

</div>

I have written an action for converting attached MS word document files  
into a plain text and HTML format. The converted file is then rendered  
in a web browser. How can I write a functional test for this action? I  
am not confused about creating a fixture for this. (attached MS word  
document files are stored as a BLOB in MySQL).

- 

Vicky.

---

<div class="post-metadata">

**Author:** ![vicky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b19c9b/32.png) [@vicky](https://www.ruby-forum.com/u/vicky)\
**Post date:** [October 20, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/functional-est-for-attachment-download/151364/2 "2008-10-20T19:41:08Z")

</div>

Well I wouldn’t really have thought those belonged in a controller  
rather than some sort of model but I would start with some sample  
files, the expected text or HTML output and assert that converting the  
samples created that output

Fred

Sent from my iPhone

On 20 Oct 2008, at 17:31, Vicky S. \<rails-mailing-list@andreas-
