David Heinemeier Hansson
d1575ae1b9
Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion!
2011-04-12 00:23:07 +02:00
Prem Sichanugrist
a9f3c9da01
Using Object#in? and Object#either? in various places
...
There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
2011-04-11 03:17:09 +08:00
Santiago Pastorino
0e4748cd41
Make process reuse the env var passed as argument
2011-04-06 16:37:55 -03:00
Xavier Noria
3e24e9ebc2
Merge branch 'master' of git://github.com/lifo/docrails
2011-04-03 22:22:03 +02:00
Aaron Patterson
58c3ec1b7b
use assert_equal so we get normal error messages along with our custom failure message
2011-03-30 15:29:52 -07:00
John Firebaugh
07054fe369
Fix grammar, formatting, and cross references
2011-03-28 22:17:20 -07:00
Andrew White
31f09f9dbc
Improve testing of cookies in functional tests:
...
- cookies can be set using string or symbol keys
- cookies are preserved across calls to get, post, etc.
- cookie names and values are escaped
- cookies can be cleared using @request.cookies.clear
[#6272 state:resolved]
2011-03-06 12:49:44 +00:00
Andrew White
af4fab7d2e
Remove incorrect assert_recognizes example
2011-02-13 23:25:57 +00:00
Andrew White
385be358cf
Fix assert_recognizes with block constraints [ #5805 state:resolved]
2011-02-13 23:24:46 +00:00
misfo
ef48408a7b
corrected the location of status code symbols
2011-01-29 16:03:40 -06:00
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