Forum: Ruby on Rails functional est for attachment download

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9cb27a13c2207accaf0828af4c36f281?d=identicon&s=25 Vicky Shaw (vicky)
on 2008-10-20 18:31
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.
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-10-20 19:41
(Received via mailing list)
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 Shaw <rails-mailing-list@andreas-
This topic is locked and can not be replied to.