| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
| |
The pages for these search results are extremely slow to load. This
is not an ideal solution by any means. Really we want to dig into why
high offsets are so slow, and whether there's anything we can do to
fix that.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
It's required in [PublicBody#type_of_authority]( https://github.com/mysociety/alaveteli/blob/rails-3-develop/app/models/public_body.rb#L343-L347)
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| | |
Easier to check against the assigned variable, but the spec still fails
because an internal error is raised if the rule is not associated with
a User or InfoRequest
|
| |
| |
| |
| |
| |
| | |
Direct the (re-rendered) form at the correct route for the association
(or use the generic route if the rule is being created for some other
reason)
|
| |
| |
| |
| |
| | |
Build the CensorRule against the object that is found by an additional
parameter (either :info_request_id or :user_id)
|
| |
| |
| |
| |
| | |
Direct the form at the correct route for the association (or use the
generic route if the rule is being created for some other reason)
|
| |
| |
| |
| |
| | |
Build the CensorRule against the object that is found by an additional
parameter (either :info_request_id or :user_id)
|
| | |
|
| |
| |
| |
| |
| | |
Note that these specs describe what the system does – not what it
_should_ do!
|
| |
| |
| |
| |
| | |
Note that these specs describe what the system does – not what it
_should_ do!
|
| |
| |
| |
| | |
Note that these specs describe what the system does – not what it
_should_ do!
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
rails-3-develop
|
| | |
| | |
| | |
| | | |
PublicBodyCategories
|
| | |
| | |
| | |
| | | |
interface
|
| |/
|/|
| |
| |
| |
| |
| | |
PublicBodyCategory#load_categories no longer exists, so don't try to
stub it.
Fixes https://github.com/mysociety/alaveteli/issues/1970
|
| |
| |
| | |
Also use double quotes rather than string escaping
|
| | |
|
| | |
|
| |
| |
| |
| | |
The spec that covers AdminPublicBodyCategoriesController#index did not
have an expectation
|
| |
| |
| |
| |
| | |
On an unsuccessful update AdminPublicBodyHeadingsController and
AdminPublicBodyCategoriesController #update should render the #edit
action.
|
| |
| |
| |
| |
| |
| |
| | |
On a successful update AdminPublicBodyHeadingsController and
AdminPublicBodyCategoriesController #update should redirect to the #edit
action rather than simply rendering the ‘edit’ template.
Fixes https://github.com/mysociety/alaveteli/issues/1977
|
|/
|
|
| |
This commit adds expectations to AdminPublicBodyCategoriesController and
AdminPublicBodyHeadingsController edit actions
|
|\ |
|
| | |
|
| | |
|
|/
|
|
| |
Shouldn't really 404 on an important/accessible URL
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The original error `ActionView::Template::Error` that this spec was
written to represent (#1406) occurred under ruby 1.8 when the decoded
non-utf-8 string was used in the locale switcher on the 'not found'
error page to generate a url for the alternative locales.
Under Ruby >= 1.9, the error thrown in that situation is an `invalid
byte sequence in UTF-8` error, thrown in the same place - the locale
switcher. However, no error seems to be thrown when the same param is
used in a request in production.
The upgrade to Rails 3.2.20 causes `String.split` to be called on the
request path in `actionpack/lib/action_dispatch/middleware/static.rb` in
order to check for attempts to access files outside the `public`
directory. This means that under Ruby >= 1.9, an `invalid byte sequence
in UTF-8` error will be thrown there in running this spec.
I think a possible solution is to use the `rack-utf8_sanitizer` gem to
provide middleware to strip invalid utf-8 from request URIs and headers
before they're processed by Rails, but it's currently unclear whether
that would have any undesirable side-effects.
|
|\ \
| | |
| | |
| | | |
rails-3-develop
|
| | |
| | |
| | |
| | |
| | | |
Introduced in 4f501309ade230f65f4ba45e1d0161e89587d755 but no longer
needed as we don't proxy the admin interface.
|
| |/ |
|
|\ \ |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
Removes the dependency on fixtures having been loaded.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Models should not send emails
|
| | | | |
|
|\ \ \ \ |
|
| |/ / / |
|
|\ \ \ \
| |_|/ /
|/| | | |
|
| |/ /
| | |
| | |
| | |
| | | |
Filters on `latest_status` because filtering by `status` searches all
states a request has ever been in.
|
|\ \ \
| |/ /
|/| |
| | | |
rails-3-develop
|