aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
Commit message (Collapse)AuthorAgeLines
* Fix more test breakageSeb Bacon2012-01-18-2/+5
|
* Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5Seb Bacon2012-01-18-3/+11
|\
| * Flexible location for validate utilityRobin Houston2012-01-17-3/+11
| | | | | | | | | | Allow the WDG HTML validation utility "validate" to be anywhere in UTILITY_SEARCH_PATH, rather than hard-coding /usr/bin.
* | Fix paging bug for type ahead search. This wasn't caught because the spec ↵Seb Bacon2012-01-18-0/+5
|/ | | | didn't call "integrate_views", so the rendering part was mocked by RSpec instead of executed.
* Force rails_env always to be test. The previous setting caused me to drop ↵Seb Bacon2012-01-12-1/+1
| | | | production databases by accident more than once....
* Don't give error when viewing HTML versions. Fixes issue #321Seb Bacon2012-01-08-2/+2
|
* Reduce excess flush operations (they're slooow)Seb Bacon2012-01-06-1/+1
|
* Further work in progressSeb Bacon2012-01-06-1/+2
|
* Further improvements to attachment cachingSeb Bacon2011-12-13-0/+5
|
* add ability to rebuild specific terms rather than all indices -- useful for ↵Seb Bacon2011-12-05-2/+10
| | | | migrations where new terms have been added (see rake:xapian:rebuild_index help)
* Merge branch 'develop' into xapian-dcaboSeb Bacon2011-11-24-6/+11
|\ | | | | | | | | Conflicts: spec/models/xapian_spec.rb
| * Merge remote-tracking branch 'jpmckinney/pre1.9' into developSeb Bacon2011-11-24-0/+8
| |\ | | | | | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| | * add safe_mock_model to safely handle #to_ary calls in 1.9James McKinney2011-10-17-0/+8
| | |
| * | Merge pull request #275 from jpmckinney/independent-specsSeb Bacon2011-11-22-6/+3
| |\ \ | | | | | | | | Allow specs to run independently
| | * | allow specs to run independentlyJames McKinney2011-10-16-6/+3
| | |/
* | | Merge branch 'develop' into xapian-dcaboseb2011-11-24-4/+4
|\| | | | | | | | | | | | | | Conflicts: spec/models/xapian_spec.rb
| * | Username from users logged in as ADMIN_USERNAME should appear in ↵seb2011-11-21-1/+1
| |/ | | | | | | administrative interface event logs. Fixes #287.
| * Respect admin password and username. Fixes #245.Seb Bacon2011-09-30-3/+3
| |
| * Fix indentationRobin Houston2011-09-08-1/+1
| |
* | Make Xapian index rebuilds run in-process (while running tests only!) for ↵David Cabo2011-08-19-5/+5
|/ | | | | | performance reasons This was previously not supported by acts_as_xapian, since the update/rebuild process didnt unlock the database when finihed. The bindings for the latest Xapian bindings support closing the database, so we take advantage of that.
* To make tests pass with RawEmails on the filesystem, instead of hacky ↵Seb Bacon2011-07-29-18/+9
| | | | 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-0/+16
| | | | 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...
* Store raw_emails in the filesystem, not in the database. They don't need to ↵Seb Bacon2011-07-22-0/+4
| | | | | | 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.
* override config for testsSeb Bacon2011-07-12-0/+3
|
* changes to get tests to pass with IZ fork and new routing-filter gemSeb Bacon2011-07-11-6/+0
|
* fix up basic auth for admin settings: get credentials from config, cause ↵Seb Bacon2011-07-06-2/+7
| | | | 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
|
* merge WTDK changes to master (preparation for closing WTDK branch and ↵Seb Bacon2011-06-14-2/+2
|\ | | | | | | deploying WTDK website straight from master)
| * Move the non-fixture files in spec/fixtures to their own subdirectory,Robin Houston2011-06-10-2/+2
| | | | | | | | | | so that we can run rake spec:db:fixtures:load without it choking on the files that aren't fixtures.
* | some test fixageSeb Bacon2011-03-11-4/+6
|/
* merge from master (post-CSRF changes)Seb Bacon2011-03-09-7/+37
|\
| * Adding spec conf files.Louise Crow2011-02-23-7/+37
| |
* | ensure tests run with test environmentSeb Bacon2011-02-25-0/+1
|/
* Get picture posting to workFrancis Irving2010-07-14-1/+5
|
* Test code for FOI officer uploadFrancis Irving2010-03-03-1/+1
|
* Test case for search where a user name is substring of anotherFrancis Irving2009-12-07-2/+5
|
* Function to call Xapian index update.Francis Irving2009-12-07-0/+5
|
* Remove clause seemingly not needed in new RailsFrancis Irving2009-12-03-2/+2
|
* Changing rspec / rspec_on_rails versionFrancis Irving2009-12-02-2/+2
|
* Give better error report when launching Xapian reindex goes wrong.francis2009-09-20-1/+1
|
* Change censor rules to apply to strings in place, so using less memory on ↵francis2009-09-15-3/+3
| | | | | | large strings. Add lots of test code for censor rules.
* Handle 301 redirectsfrancis2009-09-02-2/+2
|
* Some (as yet unused) profile photo code done on a whim on the train while itfrancis2009-08-05-0/+6
| | | | was my birthday.
* Fancier options for stopping new responses to requests.francis2009-06-15-1/+2
|
* add a validate_as_body helper method for teststony2009-03-22-0/+7
|
* Extract validate_html so can be used elsewheretony2009-03-22-10/+14
|
* Don't attempt to validate HTML if integrate_views isn't turned on (as it ↵tony2009-03-19-0/+3
| | | | won't work)
* Call rebuild_xapian_index in more tests to reduce order dependencytony2009-03-13-0/+5
|
* Test code for search and the front page.francis2008-03-19-2/+2
|
* Give warning, rather than error, if /usr/bin/validate isn't there.francis2008-02-12-18/+24
|