diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-02-03 21:04:31 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-02-03 21:04:31 +0000 |
commit | 37bbce024b1ea731fe964b9eaddfd75dd548daee (patch) | |
tree | 4fdf38fcccd51b6c4109455def734372a0bbb6a1 /spec/controllers/user_controller_spec.rb | |
parent | 8a383599e411fcbfeb1d2c19a972845f1daa524b (diff) |
Specify attachment ordering
So it turns out that issue #408 is a real and potentially nasty
bug. The code was assuming that attachments are returned in the
order they were created, which is a) not guaranteed to be the case,
and b) sometimes actually not the case, hence the occasional test
failures.
This trivial patch corrects the issue by sorting attachments by
id. The effect of this is to return them in the order they were
added to the database, since all were added using the same sequence
in a single database session.
Fixes #408.
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions