aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
Commit message (Collapse)AuthorAgeLines
* Fix failure to capitalise when non category tag precedes categories.Louise Crow2015-04-07-1/+1
| | | | Thanks to @RichardTaylor for reporting.
* Use routing helper to generate localised urls.Louise Crow2015-03-05-1/+92
|
* Refactor showing the Make Request buttonGareth Rees2015-02-20-0/+50
| | | | | | | | | | | | | | | The code here was hard to follow. Now we have a cleaner path to decide whether to show the Make Request button or not. - Always show any notes associated with the body - If a request can be made to the body - Show any tag-specific notes that may affect the request - Show the Make Request button - If a request cannot be made to the body - Show the most relevant reason why a request cannot be made Added PublicBodyHelper#public_body_not_requestable_reasons to extract the logic of finding the reason a user can’t request out of the template
* Add an action to run the checksGareth Rees2014-09-25-0/+15
|
* Add spec for highlight_and_excerptGareth Rees2014-06-25-1/+49
|
* Use regex based highlightingGareth Rees2014-06-25-2/+12
|
* Add helper to highlight and excerpt by regexGareth Rees2014-06-25-0/+189
| | | | | | | Backport of https://github.com/rails/rails/pull/11793/ Contains integration tests to check that it works as expected with ActsAsXapian.
* Fix typoGareth Rees2014-06-16-2/+2
| | | | Fixes typo in 6bd0bfe
* Remove DateTimeHelper#year_from_dateGareth Rees2014-06-05-17/+0
| | | | DateTime, Date and Time all have #year methods
* Minor tidying of DateTimeHelper and specsGareth Rees2014-06-05-4/+4
|
* Add specs for DateTimeHelper#simple_timeGareth Rees2014-06-05-0/+18
|
* Add specs for DateTimeHelper#year_from_dateGareth Rees2014-06-05-0/+16
|
* Move date helpers to DateTimeHelperGareth Rees2014-06-05-47/+54
|
* Remove duplication from new correspondence urlsGareth Rees2014-06-05-6/+14
|
* Add cache-busting to request response notificationGareth Rees2014-06-04-0/+68
| | | | | | Users get a new response email, click the link, but get a cached page. This is a quick fix to ensure they always see the response when clicking the link.
* Update specs for changes to translations in ↵Louise Crow2014-05-15-24/+24
| | | | 962e1d2b0edb6c0933ba42dd7690c38ba7d08f91
* Merge branch 'feature/1310-better-track-translation' into rails-3-developLouise Crow2014-04-04-0/+204
|\ | | | | | | | | Conflicts: spec/factories.rb
| * Move track descriptions to a helper.Louise Crow2014-03-24-0/+29
| | | | | | | | We can access url generation methods more easily here.
| * Add notices for unsubscribing from things.Louise Crow2014-03-24-0/+29
| | | | | | | | | | These are full sentences, not composed on the fly, so should be easier to translate.
| * Add notices for subscribing to something.Louise Crow2014-03-24-0/+60
| | | | | | | | | | These notices are complete sentences, not composed on the fly, so should be easier to translate.
| * Add notices for subscribing something you're subscribed to.Louise Crow2014-03-24-0/+86
| | | | | | | | | | These notices are full sentences, rather than being composed of phrases, which should make them easier to translate.
* | Add AdminHelper#comment_visibilityGareth Rees2014-03-25-0/+21
| | | | | | | | Get the canonical human-readable status of a comment
* | Merge branch 'feature/1313-better-translation-markup' into rails-3-developLouise Crow2014-03-24-0/+34
|\ \
| * | Refactor event description to make it easier to translate.Louise Crow2014-03-17-0/+34
| |/ | | | | | | Closes #1313 and #365.
* / Add formatting options to LinkToHelper#simple_dateGareth Rees2014-03-13-2/+38
|/
* Link 'anonymous' users to help section with explanation.Louise Crow2014-01-14-0/+39
| | | | | | | Requests submitted using the write API may have an anonymous user. Add a section to the FAQ explaining this, and link to it from those requests. Note this commit removes some 'h' calls that are no longer needed in Rails 3. Contributes to https://github.com/mysociety/alaveteli/issues/1286
* Switch routing-filter (which takes locale out of the params and puts it in ↵Louise Crow2013-07-18-5/+0
| | | | 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.
* admin_url was removed in 902631ec4f5e1a16b8f08a2ed0ccc86ad2b72c6cHenare Degan2013-03-15-26/+0
|
* main_url was removed in 4c9f7f7f12a47b516137bf000c3f36120033a077Henare Degan2013-03-15-12/+0
|
* Merge remote-tracking branch 'mysociety/develop' into rails-3-developHenare Degan2013-03-14-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/admin_request_controller.rb app/controllers/admin_track_controller.rb app/controllers/request_controller.rb app/controllers/services_controller.rb app/helpers/link_to_helper.rb app/mailers/request_mailer.rb app/models/application_mailer.rb app/models/info_request.rb app/views/admin_censor_rule/edit.html.erb app/views/admin_censor_rule/new.html.erb app/views/admin_public_body/_form.html.erb app/views/admin_public_body/_locale_selector.html.erb app/views/admin_public_body/_one_list.html.erb app/views/admin_public_body/edit.html.erb app/views/admin_public_body/list.html.erb app/views/admin_public_body/new.html.erb app/views/admin_request/_incoming_message_actions.html.erb app/views/admin_request/edit.html.erb app/views/admin_request/edit_comment.html.erb app/views/admin_request/edit_outgoing.html.erb app/views/admin_request/list.html.erb app/views/admin_request/list_old_unclassified.html.erb app/views/admin_request/show.html.erb app/views/admin_track/_some_tracks.html.erb app/views/admin_track/list.html.erb app/views/admin_user/edit.html.erb app/views/admin_user/list.html.erb app/views/admin_user/show.html.erb app/views/general/_footer.html.erb app/views/general/exception_caught.html.erb app/views/help/contact.html.erb app/views/layouts/default.html.erb app/views/public_body/_alphabet.html.erb app/views/request/_request_listing_single.html.erb app/views/request/_sidebar.html.erb app/views/request/new.html.erb app/views/request/show.html.erb app/views/request_mailer/external_response.rhtml app/views/request_mailer/fake_response.rhtml config/environment.rb config/environments/production.rb config/routes.rb spec/controllers/admin_censor_rule_controller_spec.rb spec/controllers/request_controller_spec.rb spec/controllers/track_controller_spec.rb spec/helpers/link_to_helper_spec.rb spec/mailers/request_mailer_spec.rb spec/models/info_request_spec.rb spec/spec_helper.rb spec/views/public_body/show.html.erb_spec.rb spec/views/request/show.html.erb_spec.rb vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
| * Stop using admin_url to generate absolute url for the admin interfaceMatthew Landauer2013-02-15-26/+0
| |
| * Stop using main_url to generate absolute urls for the main siteMatthew Landauer2013-02-15-12/+0
| |
| * Rename helper methodMatthew Landauer2013-02-15-2/+2
| |
* | Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-1/+1
| |
* | Disable routing filter in tests by using RoutingFilter.active rather than ↵Matthew Landauer2013-01-25-3/+2
|/ | | | writing to ActionController::Routing::Routes.filters
* Fix regression by allowing Date objects tooHenare Degan2012-11-21-0/+4
|
* Make simple_date respect the time zoneHenare Degan2012-11-18-0/+8
|
* Change the behaviour of admin_url to always return a full URLHenare Degan2012-10-04-2/+2
|
* Correct default value for ADMIN_BASE_URLHenare Degan2012-10-04-2/+2
| | | | Back in 008e64e7 it was changed so that you could just set a blank value instead of '/admin/', it looks like test.yml was never updated and somehow lib/configuration.rb started off with the old value too.
* Describe the current behavior of admin_urlHenare Degan2012-10-04-0/+25
|
* Update spec for previous commit.Louise Crow2012-08-29-2/+2
|
* Fix for the case where an external request has no user_nameLouise Crow2012-08-29-11/+21
|
* Let admin users use auto-login URLsRobin Houston2012-02-06-3/+3
| | | | | | Don't change logged-in user from an admin when visiting a auto-login URL. Closes #306.
* Be sure to restore RoutingFiltersRobin Houston2012-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.
* Don't choke on unescaped characters in URIs. Fixes #335.Seb Bacon2012-01-11-0/+12
|
* changes to get tests to pass with IZ fork and new routing-filter gemSeb Bacon2011-07-11-1/+2
|
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Allowing extra parameters to be passed to request_urllouise2009-04-03-0/+23