| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
| |
This ensures that the protocol does not get carried over when there are
two or more requests in functional tests. This was a problem when e.g.
the first request was HTTP and the second request was HTTPS.
Closes #2654.
Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
|
| |
|
|\
| |
| | |
ActionController::Redirecting : fix docs typo
|
| | |
|
|\ \
| | |
| | | |
actionpack/lib/action_controller/base.rb: docs typo
|
| |/ |
|
|/ |
|
|
|
|
| |
XSS attacks. Thanks Sascha Depold for the report.
|
|
|
|
| |
it doesn't force Action Controller / Active Record to load, but it doesn't fail if they have already loaded. Thanks @josevalim for the hint.
|
|
|
|
| |
use config object instead. Cuts about 15% off the load time. (#734)
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
RELEASING_RAILS.rdoc
actionpack/lib/sprockets/railtie.rb
actionpack/test/template/sprockets_helper_test.rb
activerecord/test/cases/calculations_test.rb
railties/guides/source/3_1_release_notes.textile
railties/guides/source/active_resource_basics.textile
railties/guides/source/command_line.textile
|
| | |
|
| |
| |
| |
| |
| |
| | |
Closes #1872. Closes #2031.
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
set a particular value for it. This allows servers to set it through
X-Sendfile-Type, read
https://github.com/rack/rack/blob/master/lib/rack/sendfile.rb for more
info. Anyways you can force this value in your production.rb
|
|/
|
|
|
|
| |
Closes #1872. Closes #2031.
Signed-off-by: José Valim <jose.valim@gmail.com>
|
|
|
|
|
|
| |
English to
American English(according to Weber)
|
|
|
|
|
|
| |
Needed to move AC::Metal::Instrumentation before AM::Metal::Rescue
so that status codes rendered from rescue_from blocks are logged
properly.
|
|\
| |
| | |
TODO fix explicitly loading exceptations, autoload removed
|
| | |
|
|\ \
| |/
|/| |
|
| | |
|
|/
|
|
|
|
| |
This is because only template rendering works with streaming.
Setting it at the class level was also changing the behavior
of JSON and XML responses, closes #1337.
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
provided to #cache_page to determine that url
|
| |
| |
| |
| | |
enables page caching to work without hitting the app server stack
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This makes "sprockets/railtie" explicit. This means that sprockets will
be loaded when you require "rails/all". If you are not using requiring
"rails/all", you need to manually load it with all other framework
railties.
In order to be complete, this commit also adds --skip-sprockets to
the rails generator.
|
| |
| |
| |
| | |
supplied (Issue #1847). Update tests & documentation.
|
|/
|
|
| |
other events, pull processing to char[0] and add a new line to the completed. looks more like a block now, which is useful for serial actions like test/dev
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
controller object
It would raise undefined method controller_name for nil
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
| |
and fixed helpers to work correctly in such case
|
|\
| |
| |
| |
| | |
Conflicts:
activerecord/RUNNING_UNIT_TESTS
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit restores the ability to assign cookies for testing via
@request.env['HTTP_COOKIE'] and @request.cookies, e.g:
@request.env['HTTP_COOKIE'] = 'user_name=david'
get :index
assert_equal 'david', cookies[:user_name]
and
@request.cookies[:user_name] = 'david'
get :index
assert_equal 'david', cookies[:user_name]
Assigning via cookies[] is the preferred method and will take precedence
over the other two methods. This is so that cookies set in controller
actions have precedence and are carried over between calls to get, post, etc.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Assigning cookies for test cases should now use cookies[], e.g:
cookies[:email] = 'user@example.com'
get :index
assert_equal 'user@example.com', cookies[:email]
To clear the cookies, use clear, e.g:
cookies.clear
get :index
assert_nil cookies[:email]
We now no longer write out HTTP_COOKIE and the cookie jar is
persistent between requests so if you need to manipulate the environment
for your test you need to do it before the cookie jar is created.
|
|\ \
| | |
| | | |
Stringify param values in controller tests.
|
| | |
| | |
| | |
| | |
| | | |
- exclude Rack::Test::UploadedFile to pass existing tests. Are there any
other types we're missing?
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reduces false positives that come from using ints in params in
tests, which do not get converted to strings in the tests. In
implementations going through rack, they do get converted to strings.
- David Chelimsky and Sam Umbach
|