Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Fix translating Public Bodies | Gareth Rees | 2015-03-18 | -200/+345 |
| | ||||
* | Merge branch 'hotfix/0.20.0.6' into rails-3-develop | Louise Crow | 2015-02-05 | -12/+142 |
|\ | | | | | | | | | Conflicts: spec/models/public_body_spec.rb | |||
| * | Build available locales in the controller | Gareth Rees | 2015-02-03 | -0/+15 |
| | | | | | | | | | | Removes logic from views and obsoletes AdminPublicBodyHelper#public_body_form_object | |||
| * | Fix submission of form containing both existing and new translations | Louise Crow | 2015-02-03 | -41/+50 |
| | | ||||
| * | Add AdminPublicBodyController#update specs | Gareth Rees | 2015-02-03 | -0/+106 |
| | | | | | | | | | | | | | | Covers core functionality. Could do with extracting multiple assertions in to individual specs. Strange that you need to call `reload` on the PublicBody instance when testing “updates an existing translation and adds a third translation” | |||
* | | Use RESTful routing for index | Louise Crow | 2014-12-18 | -2/+2 |
|/ | ||||
* | Populate admin public body forms based on a change request. | Louise Crow | 2014-01-13 | -0/+106 |
| | | | | | Also add editable text for an email to be sent to the person requesting the change. | |||
* | Reorganise specs | Louise Crow | 2014-01-13 | -166/+187 |
| | | | | | | | In order to make it clearer where to add new specs, group specs by controller and action, merging specs relating to internationalisation with other specs as there seem to be no specific prerequisites in terms of set up for them, and removing some duplicate specs. | |||
* | Add to fixtures a public body with an accented initial letter | Mark Longair | 2013-10-04 | -1/+2 |
| | | | | | | | | | | | | | | | | | This adds a public body called "Åčçèñtéd Authority" in the Czech locale (cs) so that we can create tests that exercise, for example, searching based on an initial letter that has a multi-byte representation in UTF-8. An old test for "add mass tags" in the admin needed to be updated since it implicitly assumed that all the public bodies in the fixtures had translations in the :en locale. The tests for loading CSV files of public bodies also needed to be updated, since they were assuming that public body names only contained letters in [A-Za-z ]. Since Unicode character classes aren't easily available in Ruby 1.8 and it makes little difference to the test, the character class is replaced by '.'. | |||
* | Update Configuration references to new name. | Louise Crow | 2013-03-19 | -1/+1 |
| | ||||
* | Merge branch 'develop' into rails-3-develop | Louise Crow | 2013-03-19 | -0/+13 |
|\ | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/views/admin_request/show.html.erb config/environment.rb | |||
| * | Allow the emergency user account to be disabled. | Louise Crow | 2013-03-19 | -0/+13 |
| | | ||||
* | | We can't mock this in Rails 3.1 so switch to using fixture_file_upload instead | Henare Degan | 2013-03-03 | -3/+2 |
| | | ||||
* | | response.flash has been deprecated | Henare Degan | 2013-02-25 | -3/+3 |
| | | ||||
* | | Change method name as it conflicts with globalize3 method name | Henare Degan | 2013-01-24 | -1/+1 |
| | | ||||
* | | Get rid of resetting of ActionController::Routing::Routes.filters | Matthew Landauer | 2013-01-04 | -18/+0 |
| | | ||||
* | | integrate_views is render_views RSpec 2 | Henare Degan | 2012-12-11 | -4/+4 |
| | | ||||
* | | The with_locale has been removed in Globalize3 | Henare Degan | 2012-12-11 | -5/+5 |
| | | | | | | | | | | | | I think Globalize is supposed to pick up the locale from I18n anyway so I don't know if these are needed. I think I still haven't done the right thing but it's time to move on. | |||
* | | Switch to new method name | Henare Degan | 2012-12-11 | -5/+5 |
|/ | ||||
* | Add some specs for admin_current_user | Louise Crow | 2012-10-30 | -0/+27 |
| | ||||
* | Pull out a bit of shared setup code. | Louise Crow | 2012-10-30 | -13/+11 |
| | ||||
* | Rework the temporary storing of a csv file of public body info between a dry ↵ | Louise Crow | 2012-08-20 | -18/+98 |
| | | | | run and real load. Use a temp file, not the session for the data. Also fixes #503. | |||
* | Don't allow non-superusers to access admin interface (eek!) Fixes #515 | Seb Bacon | 2012-06-27 | -1/+9 |
| | ||||
* | Fix test breakage introduced in 8d78cb8844549dc901cd901371be6ec604fb7f68 | Seb Bacon | 2012-05-15 | -14/+11 |
| | ||||
* | Improve administrative user account support: | Seb Bacon | 2012-05-14 | -14/+27 |
| | | | | | | * Allow users with `super` admin level to use the administrative interface. * Allow bootstrapping these users with an Emergency User over HTTP Basic Auth * Introduce new `SKIP_ADMIN_AUTH` setting to allow all admin auth to be bypassed (used by mySociety) | |||
* | Merge branch 'wdtk' into release/0.5 | Robin Houston | 2012-02-01 | -4/+0 |
|\ | | | | | | | | | Conflicts: locale/app.pot | |||
| * | Load all fixtures for all tests | Robin Houston | 2012-01-31 | -4/+0 |
| | | | | | | | | | | | | | | | | | | 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. | |||
* | | Merge branch 'issue_393' of https://github.com/henare/alaveteli into release/0.5 | Seb Bacon | 2012-01-31 | -0/+8 |
|\ \ | |/ |/| | ||||
| * | Fixes #393 - Route the mass_assign_tags action so it does what it says on ↵ | Henare Degan | 2012-01-31 | -0/+8 |
| | | | | | | | | the tin | |||
* | | Merge branch 'wdtk' into release/0.5 | Robin Houston | 2012-01-31 | -2/+2 |
|\ \ | | | | | | | | | | | | | | | | Conflicts: config/general.yml-example doc/CHANGES.md | |||
| * | | Correct copy-pasto | Robin Houston | 2012-01-31 | -2/+2 |
| |/ | | | | | | | | | I am not sure why the tests anyway passed with this mistake, but clearly those trailing .should's ought not to have been there. | |||
* / | Fix test failure introduced in commit 24bbaa5afac5ce27c351e3b460be1b0182446ba1 | Seb Bacon | 2012-01-30 | -1/+7 |
|/ | ||||
* | Refactor test code so new test data can be added | Robin Houston | 2012-01-26 | -38/+35 |
| | | | | | | | | Previously many of the tests made assumptions about the global structure of the test data set: the total number of requests, for example, or the names of all public bodies. This makes it difficult to add to the test data. This change is intended to make the test data easier to extend by eliminating such global assumptions. | |||
* | Be sure to restore RoutingFilters | Robin Houston | 2012-01-20 | -1/+6 |
| | | | | | | There were some order-dependent test failures that turned out to be caused by the fact that the RoutingFilters were cleared and not subsequently restored, by some tests. | |||
* | Fix bug introduced in cec2c545e0a10e0641c4ee67839c88d872b394b8, related to ↵ | Seb Bacon | 2012-01-13 | -0/+15 |
| | | | | issue #343. | |||
* | add more fixtures to one spec | James McKinney | 2011-10-17 | -4/+4 |
| | ||||
* | allow specs to run independently | James McKinney | 2011-10-16 | -4/+4 |
| | ||||
* | Respect admin password and username. Fixes #245. | Seb Bacon | 2011-09-30 | -0/+19 |
| | ||||
* | Refactor fixes to #142 and #143, new implementation much simpler to understand | David Cabo | 2011-08-23 | -20/+19 |
| | ||||
* | Support editing of public bodies simultaneously in all locales (closes #143) | David Cabo | 2011-08-23 | -11/+16 |
| | ||||
* | Make public body creation tests more robust | David Cabo | 2011-08-23 | -2/+4 |
| | ||||
* | Extend "new public body" form to support multiple locales (closes #142) | David Cabo | 2011-08-23 | -8/+56 |
| | ||||
* | Ensure we use sensible fallbacks for setting the default / initial locale ↵ | Seb Bacon | 2011-08-08 | -6/+6 |
| | | | | for a user. (Partially) fixes #114 | |||
* | Don't treat CSRF tokens as optional session data for administrators (they're ↵ | Seb Bacon | 2011-07-27 | -4/+12 |
| | | | | | | needed to allow them to edit anything! Fixes #95 (Also change wording of test namess to match usual rspec convention) | |||
* | Authentication should only apply to admin interface when *both* email *and* ↵ | Seb Bacon | 2011-07-27 | -0/+9 |
| | | | | password are unset | |||
* | changes to get tests to pass with IZ fork and new routing-filter gem | Seb Bacon | 2011-07-11 | -26/+31 |
| | ||||
* | fix up basic auth for admin settings: get credentials from config, cause ↵ | Seb Bacon | 2011-07-06 | -3/+32 |
| | | | | default (where no config) to skip authorization completely, add tests for these | |||
* | further test fixage | Seb Bacon | 2011-04-01 | -1/+1 |
| | ||||
* | new i18n tests for controllers and associated fixes | Seb Bacon | 2011-03-10 | -0/+54 |
| | ||||
* | Make path work in Ruby 1.9 | Francis Irving | 2010-09-15 | -1/+1 |
| |