- 06 1月, 2012 3 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit f53c247d.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 03 1月, 2012 1 次提交
-
-
由 Nick Sutterer 提交于
-
- 15 12月, 2011 1 次提交
-
-
由 Nick Howard 提交于
-
- 07 12月, 2011 1 次提交
-
-
由 Prem Sichanugrist 提交于
Currently if you're do this: assert_template :layout => "foo" Regardless of what layout you were using, the test will always pass. This was broken since the introduction of :layout option in [d9375f3f]. We have a lot of test cases in actionpack/test/controller/layout_test.rb that use this feature. This will make sure that those test cases are not true negative.
-
- 03 10月, 2011 2 次提交
-
-
由 Alexey Vakhov 提交于
-
由 Alexey Vakhov 提交于
-
- 04 9月, 2011 1 次提交
-
-
由 Milan Dobrota 提交于
-
- 23 8月, 2011 2 次提交
-
-
由 David Majda 提交于
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: NAndrew White <andyw@pixeltrix.co.uk>
-
由 Andrew White 提交于
-
- 14 8月, 2011 1 次提交
-
-
由 thoefer 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 01 8月, 2011 1 次提交
-
-
由 thoefer 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 20 6月, 2011 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 05 6月, 2011 1 次提交
-
-
由 Andrew White 提交于
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.
-
- 04 6月, 2011 1 次提交
-
-
由 Andrew White 提交于
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.
-
- 24 5月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Replace references to ActiveSupport::SecureRandom with just SecureRandom, and require 'securerandom' from the stdlib when active support is required.
-
- 22 5月, 2011 2 次提交
-
-
由 David Chelimsky 提交于
- exclude Rack::Test::UploadedFile to pass existing tests. Are there any other types we're missing?
-
由 David Chelimsky 提交于
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
-
- 18 5月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 17 5月, 2011 1 次提交
-
-
由 David Chelimsky 提交于
-
- 28 4月, 2011 1 次提交
-
-
由 misfo 提交于
since ActionDispatch::Http::Parameters#encode_params will force encoding on all params strings (when using an encoding aware Ruby), dup all strings passed into process. This prevents modification of params passed in and, more importantly, doesn't barf when a frozen string is passed thanks and high fives to kinsteronline
-
- 06 3月, 2011 1 次提交
-
-
由 Andrew White 提交于
- 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]
-
- 21 11月, 2010 1 次提交
-
-
由 Josh Kalderimis 提交于
class inheritable attributes is used no more! all internal use of class inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 07 11月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
[#5393 state:committed]
-
- 18 10月, 2010 1 次提交
-
-
由 Andrew White 提交于
-
- 04 10月, 2010 2 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
-
- 30 9月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 29 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 28 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 27 9月, 2010 2 次提交
-
-
由 Emilio Tagua 提交于
-
由 Emilio Tagua 提交于
-
- 26 9月, 2010 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
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.
-
- 27 8月, 2010 1 次提交
-
-
由 Joost Baaij 提交于
-
- 24 8月, 2010 1 次提交
-
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 25 7月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-