aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
Commit message (Collapse)AuthorAgeLines
* Add support for tags to CSV import, via field "tag_string" (issue #60)David Cabo2011-09-13-6/+26
|
* Make tag optional when importing public bodies through CSV (issue #60)David Cabo2011-09-13-0/+22
|
* Improve detection of autoresponse emails, so we can discourage users from ↵Seb Bacon2011-09-09-7/+53
| | | | replying to them. Fixes #137 (partially)
* Remove stray (debugging?) puts statementRobin Houston2011-09-08-1/+0
|
* Merge branch 'wdtk' into developRobin Houston2011-09-08-1/+55
|\ | | | | | | | | | | Conflicts: config/general.yml-example spec/models/track_mailer_spec.rb
| * Fix User.should_be_emailed?Robin Houston2011-09-08-0/+12
| | | | | | | | | | The User.should_be_emailed? method needs to be public. It should also be tested.
| * Fix “email bounced” recordingRobin Houston2011-09-07-1/+43
| | | | | | | | | | Add tests for the User.record_bounce_for_email method and (not coincidentally) make it actually work.
* | Merge branch 'develop' of github.com:sebbacon/alaveteli into developDavid Cabo2011-09-03-1/+12
|\ \
| * | Store user's locale against profile, so we can send them localised track ↵Seb Bacon2011-09-03-1/+2
| | | | | | | | | | | | emails. Also internationalize more strings at the same time. Fixes #163.
| * | Make custom track queries have readable names. Closes #169.Seb Bacon2011-09-01-0/+10
| | |
* | | Due to ca6fd3700c7c439d6ea969afcba2d2656d5b123f, theme_display_status for ↵David Cabo2011-09-01-10/+10
|/ / | | | | | | custom states needs to be a class method
* / Extend CSV import to support additional fields (short name, home page...)David Cabo2011-08-23-20/+29
|/
* Merge branch 'master' of github.com:sebbacon/alaveteliDavid Cabo2011-08-16-0/+7
|\
| * Internationalise the salution, making sure it's OK to miss out the public ↵Seb Bacon2011-08-15-0/+7
| | | | | | | | body name as they might in French. Fixes #134.
* | Don't fail if a body has the same url_name in several locales (closes #139)David Cabo2011-08-16-0/+14
|/
* Force elinks to assume UTF8 character set for its input (used when making ↵Seb Bacon2011-08-12-0/+7
| | | | plain text versions of HTML email)
* Remove more whatdotheyknow references. Closes #113 (I think).Seb Bacon2011-08-12-0/+7
|
* make CSV import test deterministic by sorting resultsDavid Cabo2011-08-12-1/+1
|
* Create public bodies in multiple locales when importing from CSVDavid Cabo2011-08-11-6/+42
|
* Handle optional field list on CSV import, needed for enabling multiple localesDavid Cabo2011-08-11-0/+13
|
* Apply censor rules even when pdftk refuses to compress. Also provide for ↵Seb Bacon2011-08-10-4/+15
| | | | alternative to pdftk for compression. Closes #123.
* Fix up missing fixtures (causing failures dependent on order the tests were ↵Seb Bacon2011-08-10-5/+9
| | | | funr). Also tidy up raw_email setup code to match everywhere.
* Guess holding pen emails based on having a correct hash and an incorrect id. ↵Seb Bacon2011-08-08-0/+34
| | | | Closes #117
* Log the reason why an incoming mail is routed to the holding pen, and ↵Seb Bacon2011-08-03-0/+44
| | | | display it to administrators. Closes #107.
* User's display name should indicate if they've been banned. Fixes #100.Seb Bacon2011-08-01-0/+18
|
* Add missing :info_requests fixture to test that depends on itSeb Bacon2011-07-29-1/+1
|
* To make tests pass with RawEmails on the filesystem, instead of hacky ↵Seb Bacon2011-07-29-7/+30
| | | | dependency on existence of text_binary field in raw_emails model, rewrite tests (and their fixtures) to explicitly load data from FS when raw_emails are used.
* move load-email-fixtures-to-filesystem hack to global config, so that we ↵Seb Bacon2011-07-25-17/+0
| | | | don't need to remember to run it everywhere that the raw_emails fixture is used. At the same time, correct the migration that previously removed the data_binary column, as this is assumed for fixture loading. In a future iteration, we should probably stop abusing fixtures like this...
* added missing outgoing_messages fixture to testDavid Cabo2011-07-23-1/+1
|
* Store raw_emails in the filesystem, not in the database. They don't need to ↵Seb Bacon2011-07-22-2/+33
| | | | | | be in the database (we never write to them, for example), and they bloat it unecessarily, making backups etc difficult. NOTE: this migration could take a *very* long time.
* test with state other than "requires_admin" (as that state sends emails and ↵Seb Bacon2011-07-13-1/+1
| | | | breaks other tests :()
* Refactor custom states loading (use class methods where appropriate, ↵Seb Bacon2011-07-12-7/+13
| | | | simplify main code at the cost (small) of test legibility)
* ensure we don't load custom states from plugins when running testsSeb Bacon2011-07-12-1/+1
|
* Improve factoring out of custom states code (refactor a little, add tests)Seb Bacon2011-07-12-0/+98
|
* include necessary fixtures to get tests always to pass even when run on ↵Seb Bacon2011-06-28-2/+2
| | | | their own
* Replace STDERR.puts by $stderr.puts elsewhere, which is potentially more ↵Robin Houston2011-06-21-5/+5
| | | | flexible (because STDERR is always the system standard error file descriptor, whereas $stderr can be replaced by some other ruby object to handle error output).
* Test that PublicBody.first_letter is correctly set on saveRobin Houston2011-06-15-1/+13
|
* Make sure the :public_body_translation fixture is included everywhere the ↵Robin Houston2011-06-09-13/+13
| | | | :public_bodies fixture is, because the PublicBody objects do not work as expected without it.
* some test fixageSeb Bacon2011-03-11-2/+1
|
* Running the callbacks more specific than calling save! here and avoids ↵Louise Crow2011-02-23-14/+14
| | | | having to handle foreign key references
* Mock a few more things now foreign key constraints are being enforced in the ↵Louise Crow2011-02-23-49/+54
| | | | test environment
* Mock out a few more things now foreign key constraints are being enforced in ↵Louise Crow2011-02-23-39/+50
| | | | the test environment.
* Use destroy rather than delete to remove the public body in this xapian ↵Louise Crow2011-02-23-2/+2
| | | | test. Now that we're using a sql schema format to populate the test database, it creates foreign keys and so on correctly, so a delete, which tries to delete the object without calling any callbacks, fails with a foreign key error as acts_as_versioned means there are still foreign keys to this record from its versions.
* Fix a bunch of broken links (thanks Alex)Francis Irving2010-10-27-1/+1
|
* Index tags on public bodies.Francis Irving2010-10-09-0/+24
|
* Index tags on info requests.Francis Irving2010-10-09-0/+19
|
* Fix URLFrancis Irving2010-10-04-1/+1
|
* Tests for find_by_tagFrancis Irving2010-09-29-0/+21
|
* Fix test of HasTagStringTagFrancis Irving2010-09-29-3/+4
|
* Factor out model of public body tags into generic tag string modelFrancis Irving2010-09-29-1/+1
|