- 28 6月, 2011 1 次提交
-
-
由 Esad Hajdarevic 提交于
-
- 26 6月, 2011 1 次提交
-
-
由 David Chelimsky 提交于
This allows test classes that are not subclasses of ActiveSupport::TestCase (like those in rspec-rails) to interact with with this variable without having to reference ActiveSupport::TestCase.
-
- 16 6月, 2011 2 次提交
-
-
由 José Valim 提交于
-
由 Wen-Tien Chang 提交于
-
- 15 6月, 2011 1 次提交
-
-
由 bagwanpankaj 提交于
-
- 14 6月, 2011 2 次提交
-
-
由 Damien Mathieu 提交于
-
由 Damien Mathieu 提交于
-
- 10 6月, 2011 2 次提交
- 08 6月, 2011 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 07 6月, 2011 1 次提交
-
-
由 Raghunadh 提交于
-
- 05 6月, 2011 2 次提交
-
-
由 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.
-
由 Andrew White 提交于
-
- 04 6月, 2011 2 次提交
-
-
由 Andrew White 提交于
-
由 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.
-
- 01 6月, 2011 1 次提交
-
-
由 Damien Mathieu 提交于
-
- 30 5月, 2011 1 次提交
-
-
由 Lee Reilly 提交于
-
- 25 5月, 2011 1 次提交
-
-
由 Josh Kalderimis 提交于
-
- 24 5月, 2011 3 次提交
-
-
由 Sebastian Martinez 提交于
-
由 Sebastian Martinez 提交于
-
由 Jon Leighton 提交于
Replace references to ActiveSupport::SecureRandom with just SecureRandom, and require 'securerandom' from the stdlib when active support is required.
-
- 23 5月, 2011 2 次提交
- 22 5月, 2011 1 次提交
-
-
由 Anuj Dutta 提交于
-
- 21 5月, 2011 1 次提交
-
-
由 Andrew White 提交于
-
- 20 5月, 2011 1 次提交
-
-
由 Diego Plentz 提交于
-
- 19 5月, 2011 1 次提交
-
-
由 steve 提交于
-
- 18 5月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 14 5月, 2011 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Jason Dew 提交于
-
- 11 5月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
-
- 10 5月, 2011 4 次提交
-
-
由 José Valim 提交于
Fix previous commit by allowing a proc to be given as response_body. This is deprecated and is going to be removed in future releases.
-
由 James Miller 提交于
-
由 Sebastian Martinez 提交于
-
由 Sebastian Martinez 提交于
-
- 08 5月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 06 5月, 2011 2 次提交
-
-
由 José Valim 提交于
-
Update the description of the :path option to #resources to reflect that it sets the actual path, not a prefix. Most instances were already fixed.
-
- 05 5月, 2011 2 次提交
-
-
由 David Heinemeier Hansson 提交于
-
由 Josh Kalderimis 提交于
-