Aaron Patterson
5769636663
fixing a few test warnings
2010-10-04 19:32:49 -07:00
Aaron Patterson
18a7b767e8
moving fake model to the correct file
2010-10-03 14:40:06 -07:00
José Valim
74dd8a3681
Move ETag and ConditionalGet logic from AD::Response to the middleware stack.
2010-10-03 21:25:22 +02:00
Aaron Patterson
3eb7f9adee
removing more duplicate code. :'(
2010-10-01 18:09:37 -07:00
Aaron Patterson
50cf5c11a1
fixing warnings with regexps on assert_match
2010-10-01 18:07:19 -07:00
Aaron Patterson
ffbcb84c21
removing more duplicate code
2010-10-01 18:05:59 -07:00
Aaron Patterson
44f85678e9
delete repeated code
2010-10-01 18:01:34 -07:00
Aaron Patterson
dfa331ae15
use a method that actually exists
2010-10-01 17:54:50 -07:00
Aaron Patterson
1c0be7baac
fixing space error
2010-09-29 11:47:54 -07:00
Emilio Tagua
6371e5b99f
We can't assign @view_context_class here, define super() in test instead if we want to avoid warnings.
2010-09-29 14:35:24 -03:00
Emilio Tagua
c37800aae1
_ is not a valid scheme name character, \w includes it and also is redundant with \d.
...
'The scheme name consists of a letter followed by any combination of letters, digits, and the plus ("+"), period ("."), or hyphen ("-") characters; and is terminated by a colon (":").'
2010-09-29 12:55:43 -03:00
Emilio Tagua
bc0e7f4e37
Test correct method behaviour.
2010-09-29 12:42:51 -03:00
José Valim
0bbf9029e8
Merge remote branch 'miloops/warnings'
2010-09-29 10:04:42 +02:00
Emilio Tagua
d5bb640eb0
Remove methods to avoid warnings.
2010-09-28 18:40:38 -03:00
Emilio Tagua
34fc109549
Redefine duplicated test name.
2010-09-28 18:36:45 -03:00
Emilio Tagua
523f98099d
Remove more warnings on AP.
2010-09-28 18:01:48 -03:00
Emilio Tagua
ad2c21089e
Define @title to avoid warnings.
2010-09-28 17:44:26 -03:00
Emilio Tagua
80a98e9b25
Use instance_variable_defined? instead instance_variable_get in tests.
2010-09-28 17:35:17 -03:00
Emilio Tagua
3abd0593a6
Initialize ivars in tests.
2010-09-28 17:32:18 -03:00
Emilio Tagua
9917356d66
Remove more warnings by initializing variables in test.
2010-09-28 17:16:18 -03:00
Emilio Tagua
3f94b45262
Remove more warnings: no need to define attr_accessor if already exists. Initialize ivar.
2010-09-28 17:08:43 -03:00
Diego Carrion
72f37bd8bc
renderer calls object.to_json when rendering :json => object [ #5655 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-27 23:11:29 +02:00
Emilio Tagua
bb71f182dd
Rename duplicated test name.
2010-09-27 11:19:24 -03:00
Emilio Tagua
535371e956
Fix indentation.
2010-09-27 11:19:19 -03:00
Emilio Tagua
2d274a5208
Use parentheses when using assert_match followed by a regexp to avoid warnings.
2010-09-27 11:19:19 -03:00
Carlos Antonio da Silva
7fc1edd790
Remove deprecated stuff in ActionController
...
This removes all deprecated classes in ActionController related to
Routing, Abstract Request/Response and Integration/IntegrationTest.
All tests and docs were changed to ActionDispatch instead of ActionController.
2010-09-26 02:13:45 +08:00
Krekoten' Marjan
8639c10a40
Fix logging when cache key contains % sign [ #5570 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 11:04:20 +02:00
Nando Vieira
7223fe7faf
Make redirect_to accept blocks [ #5643 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-24 12:49:27 +02:00
Thiago Pradi
3c9bf6e1dc
Exception handling more readable
...
[#5601 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-19 12:18:51 -07:00
Aaron Patterson
2d65ff5af7
removing some warnings
2010-09-18 14:14:46 -07:00
Maxim Chernyak
20685d07ab
Fix header capitalization by explicitly upcasing first letter of every word, and avoiding capitalize. [ #5636 state:resolved]
2010-09-18 20:49:51 +02:00
Xavier Noria
0207bc7cc9
get csrf_meta_tag back to the generated layout in deference to existing printed material, chomp also the generated HTML to be faithful to the output before the refactor
2010-09-14 01:35:44 +02:00
Collin Miller
96650f704a
added block arguments to ActionController::Metal#use
...
Useful for cases such as warden, where a block configuration is taken.
class SomeController < ApplicationController
use RailsWarden::Manager do |manager|
manager.default_strategies :facebook_oauth
manager.failure_app = SomeController.action(:authorize)
end
end
2010-09-12 07:35:54 +08:00
Xavier Noria
a87b92db7b
revises implementation and documentation of csrf_meta_tags, and aliases csrf_meta_tag to it for backwards compatibilty
2010-09-11 11:05:00 +02:00
Carlos Antonio da Silva
022fd876bb
Cleanup Action Dispatch assertions tests
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-06 13:42:11 +02:00
Carlos Antonio da Silva
9532d746a9
Cleanup deprecations in Action Dispatch
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-06 13:41:12 +02:00
Carlos Antonio da Silva
11fccc5f06
Cleanup deprecation warnings in Action Controller
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-06 13:40:45 +02:00
José Valim
8a3461b8c1
Remove a few tests from old router that do not make sense with the new one.
2010-09-05 15:59:35 +02:00
Piotr Sarnacki
e909afccc9
Deleted test with extended regexp - it fails with no reason, probably rack-mount is doing something weird with that regexp
2010-09-05 13:44:39 +02:00
Łukasz Strzałkowski
5b550523b7
Fixed 2 broken tests for router.
...
They were broken after rebase/merge
2010-09-05 13:44:39 +02:00
Łukasz Strzałkowski
8f2c0bf1a0
This test is invalid for new router
2010-09-05 13:44:39 +02:00
Łukasz Strzałkowski
eac8b9cf05
Removed tests for setting default value of *path in route
...
If we want to have this - we have to change Rack::Mount source
2010-09-05 13:44:38 +02:00
Łukasz Strzałkowski
b478ff9150
Made test_generate pass
...
I've removed assertions with @routes.generate(:use_route => ...). I'm not 100% sure if not supporting :use_route in new router is intentional or it should rather be supported and backported from 2.3.x.
2010-09-05 13:44:38 +02:00
Łukasz Strzałkowski
af72cf4799
If it's unused there's no reason to keep it commented. It will always remain in git history, so removing it.
2010-09-05 13:44:38 +02:00
Piotr Sarnacki
c15bb4901b
Fixed routes to use new API in a few more actionpack tests
2010-09-05 13:44:37 +02:00
Łukasz Strzałkowski
442e54967c
Removed rest of errors and failures in routing_test.rb. Almost all squashed, only few left
2010-09-05 13:44:37 +02:00
Piotr Sarnacki
3088b4f84f
raise error on invalid HTTP methods or :head passed with :via in routes
2010-09-05 13:44:37 +02:00
Piotr Sarnacki
8958f332bb
Implemented resources :foos, :except => :all option
2010-09-05 13:44:37 +02:00
Łukasz Strzałkowski
7c50454529
Test for recognizing routes with http method set
2010-09-05 13:44:37 +02:00
Łukasz Strzałkowski
8412886bdb
Fixed about half of broken tests in routing_test
2010-09-05 13:44:37 +02:00