aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
* Spec is deprecated in favour of RSpecHenare Degan2013-02-14-1/+1
|
* Mocking and stubbing work a bit differently, this allows the test to runHenare Degan2013-02-08-1/+1
|
* In test we have 3 available locales so these URLs should contain the locale ↵Henare Degan2013-02-08-2/+2
| | | | in the path
* Update test to use Webrat matchers instead of removed methodsHenare Degan2013-02-07-2/+8
|
* Don't need a regex here, it uses #include?Henare Degan2013-02-07-1/+1
|
* This parameter is typecast in Rails 3Henare Degan2013-02-07-1/+1
|
* Bring over test-specific translations config from Rails 2 test helperHenare Degan2013-02-07-3/+4
|
* Add a test that exposes a problem we have with renaming attributesHenare Degan2013-02-07-0/+8
|
* Move over to rails 3 mail api because there appear to be problems with ↵Matthew Landauer2013-02-01-1/+1
| | | | sending attachments
* Handling of globbed parameters in routes has changedMatthew Landauer2013-02-01-9/+9
|
* Simplify redirection testMatthew Landauer2013-01-31-4/+2
|
* There's really no need to test the internals of RailsMatthew Landauer2013-01-31-9/+0
|
* Cast mail.body to string before matching with a regexMatthew Landauer2013-01-31-1/+1
|
* Fix rendering of atom feed and set correct content typeMatthew Landauer2013-01-31-1/+1
|
* Test result of test with examples rather than another implementationMatthew Landauer2013-01-31-5/+14
|
* Merge branch 'i18n_rails3_preparation' into rails-3-spikeMatthew Landauer2013-01-31-10/+6
|\ | | | | | | | | | | | | | | Conflicts: Gemfile.lock app/controllers/general_controller.rb app/controllers/public_body_controller.rb spec/controllers/public_body_controller_spec.rb
| * Set locale with I18n rather than through globalizeMatthew Landauer2013-01-17-10/+10
| |
| * Set locale in controller test by passing parameter in getMatthew Landauer2013-01-16-9/+5
| | | | | | | | Also using I18n.locale to pass the current locale around.
* | Updated test to correctly test what it was testingMatthew Landauer2013-01-30-2/+1
| |
* | Find is now being called with an integer rather than a string. All goodMatthew Landauer2013-01-30-1/+1
| |
* | mail from_addrs now doesn't return the nameMatthew Landauer2013-01-29-1/+1
| |
* | errors returns an array nowMatthew Landauer2013-01-29-1/+1
| |
* | params_from doesn't exist anymoreMatthew Landauer2013-01-29-2/+2
| |
* | When matching mail.body with regex cast to string firstMatthew Landauer2013-01-29-3/+3
| |
* | Replace use of response.should send_email with checking ↵Matthew Landauer2013-01-29-4/+4
| | | | | | | | ActionMailer::Base.deliveries
* | Clear out ActionMailer::Base.deliveries before each test. Rspec should be ↵Matthew Landauer2013-01-29-33/+7
| | | | | | | | doing this but isn't for controller tests
* | modernise redirect tests by converting to using url helpersMatthew Landauer2013-01-29-7/+7
| |
* | When matching the body of an email to a regex cast it to a stringMatthew Landauer2013-01-29-6/+6
| |
* | Email address returned from mail doesn't have the name part anymoreMatthew Landauer2013-01-29-9/+9
| |
* | Pass string to paremeter in testMatthew Landauer2013-01-29-1/+1
| |
* | When mocking ActsAsXapian can't use mock_model because it's not a modelMatthew Landauer2013-01-29-2/+2
| |
* | Reset Actionmailer deliveries on controller tests. Apparently rspec isn't ↵Matthew Landauer2013-01-29-0/+26
| | | | | | | | now doing this automatically
* | Replace use of have_text with contain from webrat or matchMatthew Landauer2013-01-29-34/+34
| |
* | Copy basic_auth_login spec_helper from rspec 1 to 2Matthew Landauer2013-01-29-0/+6
| |
* | Correct use of have_selector in b37586c7165afb7b3447dfe2780169a88cb0a942.Matthew Landauer2013-01-29-9/+17
| |
* | Replace use of have_tag with have_selector from webratMatthew Landauer2013-01-28-26/+26
| |
* | Correctly recognise a fragment for html validationMatthew Landauer2013-01-28-1/+1
| |
* | Use preceding slash on paths to fixtures filesMatthew Landauer2013-01-28-4/+4
| |
* | Calling TMail::Mail#base64_decode does not modify the mail object so doesn't ↵Matthew Landauer2013-01-28-1/+1
| | | | | | | | do anything as used here
* | Fix indentation onlyHenare Degan2013-01-27-6/+6
| |
* | This API seems to have changed so just check if there's a bodyHenare Degan2013-01-27-1/+1
| |
* | path helper should be html safe and fix up view test for rspec 2Matthew Landauer2013-01-25-3/+3
| |
* | Merge branch 'rails_xss' into rails-3-spikeMatthew Landauer2013-01-25-1/+57
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock config/environment.rb lib/i18n_fixes.rb
| * | Merge remote-tracking branch 'mysociety/develop' into rails_xssMatthew Landauer2013-01-15-212/+1486
| |\|
| | * As we're validating filename with validates_presence_of, which doesn't allow ↵Louise Crow2013-01-14-1/+12
| | | | | | | | | | | | blanks, ensure_filename! should populate a default filename on a blank filename, as well as on nil.
| | * Handle case where info request doesn't have a user_nameLouise Crow2013-01-07-0/+7
| | |
| * | Fix translations with interpolations to correctly handle safe_htmlMatthew Landauer2013-01-15-0/+38
| | |
* | | In rails 3 sendmail is passed the destination of the email on the ↵Matthew Landauer2013-01-25-1/+6
| | | | | | | | | | | | commandline. Also, monkeypatch not needed anymore
* | | Rename mailer method to avoid naming conflict in Rails 3Matthew Landauer2013-01-25-2/+2
| | |
* | | Remove timezone monkeypatch fixes because they're not necessary in Rails 3 ↵Matthew Landauer2013-01-25-0/+5
| | | | | | | | | | | | anymore