aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/foi_attachment_spec.rb
Commit message (Collapse)AuthorAgeLines
* As we're validating filename with validates_presence_of, which doesn't allow ↵Louise Crow2013-01-14-1/+12
| | | | blanks, ensure_filename! should populate a default filename on a blank filename, as well as on nil.
* Load all fixtures for all testsRobin Houston2012-01-31-1/+0
| | | | | | | | | The ad hoc specification of fixtures has been an ongoing source of bugs in the tests. The straw that broke the camel’s back is that 7c6eb09 requires the fixtures to be loaded in order (i.e. children before their parents), and it would have been a painful process to reorder all the dozens of different fixture lists, but the test system ought to be more reliable this way.
* Load all raw emails for testingRobin Houston2012-01-29-1/+1
| | | | | | | | | | | Previously there was just one raw email, and the test code relied on that fact. Generalise it to handle multiple raw emails. This change causes a number of tests to fail, because it exposes failures that should have happened when the second raw email was added but were masked by the fact that the text of this second raw email was never loaded. These failures will be fixed in the next commit.
* To get around occasional race conditions, instead of forcing an fsync, retry ↵Seb Bacon2012-01-13-9/+9
| | | | getting the body a few times before failing. May be related to issue #333 and #339
* Test for commit caff0a3ff2e38a5aab906baa4cc77d30587e1184 (ensure we always ↵Seb Bacon2012-01-09-0/+36
regenerate attachments cache when necessary)