Aaron Patterson
831a2342c6
just use alias
2010-11-30 20:04:31 -08:00
José Valim
da583df50c
Remove bazillion warnings from AP suite.
2010-11-23 10:09:24 +01:00
Sven Fuchs
5c86286dd6
add respond_to? to ActionDispatch::Integration::Runner
...
since Runner uses method_missing to delegate to the integration session it also should define respond_to? accordingly
2010-11-22 15:42:28 -08:00
David Trasbo
990f52ebd7
Make cookies hash in ActionDispatch::TestProcess indifferent access [ #5761 state:committed]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-11-07 14:48:51 -02:00
Santiago Pastorino
d3d724bb88
Remove this require since active_support/testing/default doesn't exist anymore
2010-10-20 12:50:31 -02:00
Aaron Patterson
ff2fdcc52b
removing AS::Testing::Default in favor of just undefing default_test
2010-10-01 17:22:42 -07: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
8823b85010
Remove redundant conditional.
2010-09-29 12:42:51 -03:00
José Valim
b1ae796284
Fix an error on 1.8.7.
2010-09-29 11:28:38 +02:00
José Valim
14f9904e0f
Avoid (@_var ||= nil) pattern by using initialize methods and ensuring everyone calls super as expected.
2010-09-29 11:18:31 +02:00
Emilio Tagua
523f98099d
Remove more warnings on AP.
2010-09-28 18:01:48 -03:00
Emilio Tagua
059d609a1a
Avoid more uninitialized variable warnings.
2010-09-28 15:46:30 -03:00
Emilio Tagua
adcc5e11fe
@selected may not be defined here, avoid warning.
2010-09-28 15:29:40 -03:00
Emilio Tagua
b8c565fbd6
Initialize @app if it doesn't exists.
2010-09-28 15:10:15 -03:00
Emilio Tagua
1ab2ab07b5
Remove more warnings shadowing outer local variable.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-27 16:43:17 -03:00
Emilio Tagua
50decfbc0e
_routes must be inside @controller conditional.
2010-09-27 11:19:24 -03:00
Emilio Tagua
c2940a6bf4
Refactor method to avoid warnings and not run unnecessary code.
2010-09-27 11:19:24 -03:00
Emilio Tagua
1ed18fcc91
Initialize @cookies.
2010-09-27 11:19:23 -03:00
Emilio Tagua
583ddf22a2
Remove more warnings shadowing outer local variable.
2010-09-27 11:19:22 -03:00
Emilio Tagua
dafb4bd33b
Don't shadow outer local variables.
2010-09-27 11:19:22 -03:00
Emilio Tagua
53b91b11cc
Avoid uninitialized variable warning, reuse @integration_session.
2010-09-27 11:19:21 -03:00
Emilio Tagua
24ef32fe93
Ask is @controller is defined to avoid warning.
2010-09-27 11:19:21 -03:00
Santiago Pastorino
56de4e9a80
Fix the precedence issue here
2010-09-26 17:54:00 -03:00
Santiago Pastorino
db23e32141
Not need to do this double ternary
2010-09-26 17:43:26 -03:00
Santiago Pastorino
29f13beda3
port is appended twice to HTTP_HOST when host already has the port
2010-09-26 12:06: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
John Firebaugh
308517e913
Don't duplicate Rack::Response functionality. [ #5320 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 10:58:07 +02:00
Aaron Patterson
de9b3385fc
fixing bug with rails use of rack-test
2010-09-22 17:09:06 -07: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
Piotr Sarnacki
a132229d7b
Added ability to set asset_path for engines
2010-09-03 22:59:08 +02:00
Joost Baaij
591e87fe7b
Expanded routing documentation with current best practices
2010-08-29 00:04:14 +02:00
Joost Baaij
4b14de72e1
The call-seq directive has no useful effect on our documentation and is not used anywhere else.
...
Worse still, its use breaks some rdoc, replacing method names with a curly brace.
Having just one call-seq directive doesn't add anything since this is covered by regular rdoc.
Having multiple might make sense, but these are already documented with examples.
This partly re-reverts 60de0e56b7 but does not
touch the vendorized code in html-scanner.
2010-08-28 00:50:50 +02:00
Xavier Noria
27d42a56b9
Revert "call-seq directive makes rdoc cry and replaces method names with a curly brace; besides it doesn't add anything when you only list one call example since this is obviously documented already"
...
Reason: Part of this commit touches vendorized stuff, the rest is fine, could you please repatch?
This reverts commit 60de0e56b7 .
2010-08-27 23:30:52 +02:00
Joost Baaij
4a56f8f314
escape constants that should not be linked to
2010-08-27 22:47:11 +02:00
Joost Baaij
60de0e56b7
call-seq directive makes rdoc cry and replaces method names with a curly brace; besides it doesn't add anything when you only list one call example since this is obviously documented already
2010-08-27 22:20:53 +02:00
Andrew White
7c9bf45b0d
Support routing constraints in functional tests
...
Extend assert_recognizes and assert_generates to support passing
full urls as the path argument. This allows testing of routing
constraints such as subdomain and host within functional tests.
[#5005 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-20 14:51:25 -03:00
Xavier Noria
4f7565c4de
adds missing requires for Object#try
2010-08-09 15:25:21 +02:00
Santiago Pastorino
b1cfcedc8f
Change returning with tap
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-25 16:33:04 +02:00
José Valim
c3c349ec3e
Remove assert_valid. It was already deprecated on Rails 2.3.
2010-07-19 22:35:17 +02:00
Paco Guzman
ec37452f68
Remove unused variable on assert_recognizes [ #4912 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-22 17:37:18 +02:00
Josh Kalderimis
dad71c6099
removed 'unless const_defined?' code smell
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-21 23:34:45 +02:00
Evgeniy Dolzhenko
ccf9577aee
Fix a bunch of minor spelling mistakes
2010-06-11 14:15:34 +04:00
wycats
d6953cbfd3
regular expressions are usually ASCII-encoded, so force_encoding the content of a Node to the encoding of the regular expression is wrong.
2010-06-07 18:06:08 -04:00
Paco Guzman
cdf700147c
fix assert_select messages to its declaration behaviour
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-15 16:31:36 +02:00
Santiago Pastorino
961aa70e4a
Some require indifferent_access added
...
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:45:29 -07:00
David Chelimsky
4327ad51ab
access assigns as a method or hash, with strings or symbols [ #4431 state:resolved]
2010-04-17 15:59:10 -04:00
Joshua Peek
570c54c39a
Fix cookie access in integration tests with other host names
2010-04-05 15:22:09 -07:00
Xavier Noria
89978f10af
moves Object#singleton_class to Kernel#singleton_class to match Ruby also there, same for #class_eval to simplify, and adds coverage for class_eval
2010-04-05 12:15:08 -07:00
José Valim
6690d66292
Rename config.cookie_secret to config.secret_token and pass it as configuration in request.env. This is another step forward removing global configuration.
2010-04-05 12:00:24 +02:00
wycats
ab8bf9e152
* Change the object used in routing constraints to be an instance of
...
ActionDispatch::Request rather than Rack::Request.
* Changed ActionDispatch::Request#method to return a String, to be
compatible with the Rack::Request superclass.
* Changed ActionDispatch::Request#method to return the original
method in the case of methodoverride and #request_method not to,
to be compatible with Rack::Request
2010-04-03 20:24:30 -07:00