Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Factor out a 'with_duplicate_xapian_job_creation' helper | Mark Longair | 2013-10-07 | -0/+19 |
| | | | | | | | | | | In a subsequent commit, we will want to wrap an additional section of code with the addition and removal of a hook that creates a duplicate xapian job, so it's useful for this to be factored out. This commit introduces a 'with_duplicate_xapian_job_creation' method that can be passed a block which will be run with the forced duplicate xapian job creation. | |||
* | Make some simple factories for real objects. | Louise Crow | 2013-09-16 | -0/+2 |
| | ||||
* | Move some more config into AlaveteliLocalization so that it can be called ↵ | Louise Crow | 2013-07-24 | -2/+1 |
| | | | | outside initialization e.g. in tests. | |||
* | Extract code for setting locales in FastGettext and I18n | Louise Crow | 2013-07-18 | -5/+2 |
| | ||||
* | Switch routing-filter (which takes locale out of the params and puts it in ↵ | Louise Crow | 2013-07-18 | -0/+10 |
| | | | | the URL) off by default in model, controller, and helper tests. This means we can supply the locale as a param. Turn it on specifically for a couple of controller tests that test routing, and change other url localization tests into integration tests. | |||
* | Restore coveralls config. | Louise Crow | 2013-06-04 | -0/+12 |
| | ||||
* | Unraveled another test environment cleanup bug with config.order = random:33691 | Matthew Landauer | 2013-03-26 | -0/+13 |
| | ||||
* | Now randomise the test order by default to help uncover order dependent issues | Matthew Landauer | 2013-03-19 | -1/+1 |
| | ||||
* | Remove empty fixtures | Henare Degan | 2013-03-03 | -3/+1 |
| | ||||
* | This is already defined in xapian_index | Henare Degan | 2013-03-03 | -15/+0 |
| | ||||
* | Rename Configuration class to avoid conflict with ActiveSupport::Configurable | Henare Degan | 2013-03-03 | -2/+2 |
| | ||||
* | 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 |