- 14 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>
-
- 24 6月, 2010 1 次提交
-
-
由 Michael Lovitt 提交于
[#4938] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 22 6月, 2010 1 次提交
-
-
由 David Chelimsky 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 11 6月, 2010 1 次提交
-
-
由 Evgeniy Dolzhenko 提交于
-
- 07 6月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 05 6月, 2010 1 次提交
-
-
由 wycats 提交于
-
- 03 5月, 2010 2 次提交
-
-
由 David Chelimsky 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Justin George 提交于
More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 26 4月, 2010 1 次提交
-
-
由 David Chelimsky 提交于
- this makes it possible for other test frameworks to hook into testing facilities provided by Rails without having to subclass AC::TestCase. [#4474 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 25 4月, 2010 1 次提交
-
-
由 David Chelimsky 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 15 4月, 2010 2 次提交
-
-
由 wycats 提交于
-
由 Santiago Pastorino 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 09 4月, 2010 1 次提交
-
-
由 Michael Koziarski 提交于
-