Vrite a file size verification test

Hello there.

I need to write a file size verification test for a model. To do that I need to generate a fake file with a definite size (e. g. 5Mb), how do I do that?

Hi there,

This list is reserved for talk about the core of the Rails framework itself.

Please ask general Rails questions on the rubyonrails-talk mailing list, #rubyonrails channel on Freenode or on Stack Overflow under the “ruby-on-rails” tag.