Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Speed up tests by brining the garbage collection hack over too | Henare Degan | 2013-02-19 | -0/+14 |
| | ||||
* | Use Spork instead of writing our own | Henare Degan | 2013-02-19 | -107/+121 |
| | ||||
* | Bring over test-specific translations config from Rails 2 test helper | Henare Degan | 2013-02-07 | -0/+4 |
| | ||||
* | Clear out ActionMailer::Base.deliveries before each test. Rspec should be ↵ | Matthew Landauer | 2013-01-29 | -0/+7 |
| | | | | doing this but isn't for controller tests | |||
* | Copy basic_auth_login spec_helper from rspec 1 to 2 | Matthew Landauer | 2013-01-29 | -0/+6 |
| | ||||
* | Copied load_test_categories from rspec 2 to rspec 3 helper file | Matthew Landauer | 2013-01-25 | -0/+8 |
| | ||||
* | Merge remote-tracking branch 'mysociety/develop' into rails-3-spike | Matthew Landauer | 2013-01-04 | -0/+14 |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile.lock Rakefile app/controllers/request_controller.rb lib/tasks/rspec.rake spec/controllers/services_controller_spec.rb spec/spec_helper.rb spec/views/request/_after_actions.rhtml_spec.rb | |||
| * | Wrap specs on the extraction of RFC-822 headers in code that sets the ENV ↵ | Louise Crow | 2012-12-11 | -0/+15 |
| | | | | | | | | timezone. TMail renders headers using localtime, which is not ideal, but we're migrating away from it anyway, so I'm not sure it's worth delving into the internals of TMail to fix it. | |||
* | | Moved two needed helper functions from spec/spec_helper.rb.rails2 | Matthew Landauer | 2013-01-04 | -0/+23 |
| | | ||||
* | | Load fixtures in the same way as before | Henare Degan | 2012-12-11 | -0/+17 |
| | | | | | | | | Makes a simple model like Holiday pass, yay | |||
* | | Set aside the Rails 2 spec_helper and generate a new one | Henare Degan | 2012-12-11 | -265/+26 |
|/ | | | | We'll bring stuff from it back in gradually to remove unnecessary cruft | |||
* | Merge remote-tracking branch 'henare_github/relax-gc-for-tests' into develop | Louise Crow | 2012-12-10 | -0/+14 |
|\ | ||||
| * | Only trigger garbage collection every 4 seconds - speeds up the whole test ↵ | Henare Degan | 2012-12-08 | -0/+14 |
| | | | | | | | | | | | | suite by ~35% on my machine Via https://37signals.com/svn/posts/2742-the-road-to-faster-tests | |||
* | | Add option to load_file_fixture to specify that the file contents should ↵ | Louise Crow | 2012-12-04 | -2/+7 |
|/ | | | | just be loaded as binary. | |||
* | Add function to clone a clean copy of the xapian index with fixtures loaded ↵ | Louise Crow | 2012-11-21 | -18/+38 |
| | | | | into it. | |||
* | Factor out method for getting a mail object from a fixture file. | Louise Crow | 2012-11-15 | -0/+4 |
| | ||||
* | Extract configuration with defaults into one module | Matthew Landauer | 2012-09-25 | -4/+3 |
| | ||||
* | Clearer formatting of global fixtures list. | Louise Crow | 2012-08-22 | -7/+21 |
| | ||||
* | Misc fixes to get tests to pass - notably a MonkeyPatch to work around ↵ | Seb Bacon | 2012-07-13 | -0/+13 |
| | | | | problem testing template results | |||
* | Use PO files from `spec/fixtures/locale` rather than the application - makes ↵ | Seb Bacon | 2012-06-14 | -0/+4 |
| | | | | it less brittle. | |||
* | More changes and refactoring to make purges work. | Seb Bacon | 2012-04-20 | -1/+1 |
| | ||||
* | Merge branch 'develop' into purge-requests | Seb Bacon | 2012-04-19 | -1/+1 |
|\ | | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb | |||
| * | use Rails.root, not RAILS_ROOT | James McKinney | 2012-04-02 | -1/+1 |
| | | ||||
* | | first stab at sending PURGE requests to upstream varnish for request pages. ↵ | Seb Bacon | 2012-03-13 | -0/+3 |
|/ | | | | Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job. | |||
* | Load all fixtures for all tests | Robin Houston | 2012-01-31 | -0/+1 |
| | | | | | | | | | 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. | |||
* | Make better wording at the top of the page listing subsets of public bodies. ↵ | Seb Bacon | 2012-01-30 | -0/+8 |
| | | | | At the same time, cause the tests not to rely on WDTK data. Fixes #396 | |||
* | Load all raw emails for testing | Robin Houston | 2012-01-29 | -7/+7 |
| | | | | | | | | | | | 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. | |||
* | Fix more test breakage | Seb Bacon | 2012-01-18 | -2/+5 |
| | ||||
* | Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5 | Seb Bacon | 2012-01-18 | -3/+11 |
|\ | ||||
| * | Flexible location for validate utility | Robin Houston | 2012-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 Bacon | 2012-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 Bacon | 2012-01-12 | -1/+1 |
| | | | | production databases by accident more than once.... | |||
* | Don't give error when viewing HTML versions. Fixes issue #321 | Seb Bacon | 2012-01-08 | -2/+2 |
| | ||||
* | Reduce excess flush operations (they're slooow) | Seb Bacon | 2012-01-06 | -1/+1 |
| | ||||
* | Further work in progress | Seb Bacon | 2012-01-06 | -1/+2 |
| | ||||
* | Further improvements to attachment caching | Seb Bacon | 2011-12-13 | -0/+5 |
| | ||||
* | add ability to rebuild specific terms rather than all indices -- useful for ↵ | Seb Bacon | 2011-12-05 | -2/+10 |
| | | | | migrations where new terms have been added (see rake:xapian:rebuild_index help) | |||
* | Merge branch 'develop' into xapian-dcabo | Seb Bacon | 2011-11-24 | -6/+11 |
|\ | | | | | | | | | Conflicts: spec/models/xapian_spec.rb | |||
| * | Merge remote-tracking branch 'jpmckinney/pre1.9' into develop | Seb Bacon | 2011-11-24 | -0/+8 |
| |\ | | | | | | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb | |||
| | * | add safe_mock_model to safely handle #to_ary calls in 1.9 | James McKinney | 2011-10-17 | -0/+8 |
| | | | ||||
| * | | Merge pull request #275 from jpmckinney/independent-specs | Seb Bacon | 2011-11-22 | -6/+3 |
| |\ \ | | | | | | | | | Allow specs to run independently | |||
| | * | | allow specs to run independently | James McKinney | 2011-10-16 | -6/+3 |
| | |/ | ||||
* | | | Merge branch 'develop' into xapian-dcabo | seb | 2011-11-24 | -4/+4 |
|\| | | | | | | | | | | | | | | Conflicts: spec/models/xapian_spec.rb | |||
| * | | Username from users logged in as ADMIN_USERNAME should appear in ↵ | seb | 2011-11-21 | -1/+1 |
| |/ | | | | | | | administrative interface event logs. Fixes #287. | |||
| * | Respect admin password and username. Fixes #245. | Seb Bacon | 2011-09-30 | -3/+3 |
| | | ||||
| * | Fix indentation | Robin Houston | 2011-09-08 | -1/+1 |
| | | ||||
* | | Make Xapian index rebuilds run in-process (while running tests only!) for ↵ | David Cabo | 2011-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 Bacon | 2011-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 Bacon | 2011-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 Bacon | 2011-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. |