aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
* added missing outgoing_messages fixture to testDavid Cabo2011-07-26-1/+1
|
* Only prepend locales to paths when there's more than one locale to choose from.Seb Bacon2011-07-15-0/+23
| | | | Replaces core "locale" filter with customised one. Fixes #82
* Make test description be accurateSeb Bacon2011-07-14-1/+1
|
* Merge branch 'master' of github.com:sebbacon/alaveteliSeb Bacon2011-07-14-1/+4
|\ | | | | | | | | Conflicts: app/views/request/_request_listing_single.rhtml
| * Make the tests work with authenticationRobin Houston2011-07-13-1/+4
| |
* | Fix bug on categorisation page that was stopping game from workingSeb Bacon2011-07-14-0/+49
|/
* test with state other than "requires_admin" (as that state sends emails and ↵Seb Bacon2011-07-13-1/+1
| | | | breaks other tests :()
* don't test routing filters at same time as other testsSeb Bacon2011-07-13-1/+2
|
* fix "custom request states" request controller testSeb Bacon2011-07-12-0/+3
|
* Refactor custom states loading (use class methods where appropriate, ↵Seb Bacon2011-07-12-8/+15
| | | | simplify main code at the cost (small) of test legibility)
* override config for testsSeb Bacon2011-07-12-0/+3
|
* 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/+110
|
* changes to get tests to pass with IZ fork and new routing-filter gemSeb Bacon2011-07-11-48/+59
|
* merge from masterSeb Bacon2011-07-07-1/+1
|\
| * Remove the translate_routes plugin, for now, because it appears toRobin Houston2011-07-06-1/+1
| | | | | | | | be the cause of several difficult bugs related to routing.
* | Changes required to get selishta (Kosovo) fork merges to pass tests. ↵Seb Bacon2011-07-06-2/+2
| | | | | | | | Includes new "REPLY_LATE_AFTER_DAYS" config option.
* | fix up basic auth for admin settings: get credentials from config, cause ↵Seb Bacon2011-07-06-5/+39
| | | | | | | | default (where no config) to skip authorization completely, add tests for these
* | When testing, don't HTML-validate Unauthorized responsesSeb Bacon2011-07-06-1/+7
|/
* include necessary fixtures to get tests always to pass even when run on ↵Seb Bacon2011-06-28-2/+2
| | | | their own
* Add tests for the external_command library, and fix a bugRobin Houston2011-06-22-0/+62
| | | | | | | (which was actually a fairly late regression, showing the benefits of formal tests vs informal testing). I believe this bug was the cause of the recent Xapian indexing errors.
* 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).
* Get rid of commented-out STDERR.puts messagesRobin Houston2011-06-21-4/+0
|
* Correct an operator precendence bug in request_controller, and add a test ↵Robin Houston2011-06-21-6/+35
| | | | for it.
* Argh! Another spec that uses the :public_bodies fixture and needsRobin Houston2011-06-20-0/+1
| | | | :public_body_translations to be added for it to work correctly.
* Test that PublicBody.first_letter is correctly set on saveRobin Houston2011-06-15-1/+13
|
* merge WTDK changes to master (preparation for closing WTDK branch and ↵Seb Bacon2011-06-14-6/+5
|\ | | | | | | deploying WTDK website straight from master)
| * Move the non-fixture files in spec/fixtures to their own subdirectory,Robin Houston2011-06-10-6/+5
| | | | | | | | | | so that we can run rake spec:db:fixtures:load without it choking on the files that aren't fixtures.
| * Don't store passwords in post_params.Louise Crow2011-05-16-2/+2
| |
* | Make sure the template rendering happens within the scope ofSeb Bacon2011-06-13-0/+7
| | | | | | | | | | with_locale, so it's rendered using the correct locale. (+ test for this)
* | Make sure the :public_body_translation fixture is included everywhere the ↵Robin Houston2011-06-09-31/+31
| | | | | | | | :public_bodies fixture is, because the PublicBody objects do not work as expected without it.
* | Don't store passwords in post_params.Louise Crow2011-05-16-2/+1
| |
* | Adding missing fixture.Louise Crow2011-04-07-7/+6
| |
* | Merge branch 'master' of github.com:sebbacon/alaveteliSeb Bacon2011-04-01-0/+33
|\|
| * Monkeypatching TMail parser to fix case where multiple addresses in the to: ↵Louise Crow2011-03-28-0/+33
| | | | | | | | field of an incoming email have unquoted display parts - with this patch, each address is returned by the TMail to() function, without it only the last one is returned.
* | further test fixageSeb Bacon2011-04-01-4/+8
| |
* | some test fixageSeb Bacon2011-03-11-8/+10
| |
* | new i18n tests for controllers and associated fixesSeb Bacon2011-03-10-7/+81
| |
* | Reindexing xapian before running track alert specLouise Crow2011-03-10-2/+2
| |
* | further i18n of public bodies; start to fix testsSeb Bacon2011-03-10-0/+43
|/
* merge from master (post-CSRF changes)Seb Bacon2011-03-09-141/+180
|\
| * Check that full error message is being displayed without interpolated ↵Louise Crow2011-02-24-1/+1
| | | | | | | | attribute name.
| * Changing expected sender from list to string when string is passed to STMP - ↵Louise Crow2011-02-23-1/+1
| | | | | | | | presumably a small change in the way this is handled by action mailer.
| * Clear deliveries array after running spec.Louise Crow2011-02-23-0/+1
| |
| * Mock a few more things so that we're not actually saving to the db.Louise Crow2011-02-23-12/+18
| |
| * 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.
| * Adding required info_request_event fixture.Louise Crow2011-02-23-1/+1
| |