- 29 4月, 2012 2 次提交
-
-
由 Andrew White 提交于
-
由 Andrew White 提交于
This may break existing tests that are asserting the whole session contents but should not break existing tests that are asserting individual keys - e.g: class SomeControllerTest < ActionController::TestCase setup do session['user_id'] = 1 end test "some test" do get :some_action, nil, { 'another_var' => 2 } # This assertion will now fail assert_equal({ 'another_var' => 2 }, session) # This assertion will still pass assert_equal 2, session['another_var] end end Fixes #1529.
-
- 25 4月, 2012 1 次提交
-
-
由 Jose and Yehuda 提交于
In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
-
- 18 2月, 2012 1 次提交
-
-
由 Will Bryant 提交于
-
- 09 2月, 2012 1 次提交
-
-
由 ganesh 提交于
-
- 17 1月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Based on 50d23bc2.
-
由 Carlos Antonio da Silva 提交于
-
- 10 1月, 2012 3 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
- 06 1月, 2012 2 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit f53c247d.
-
由 Aaron Patterson 提交于
-
- 03 1月, 2012 2 次提交
-
-
由 Nick Sutterer 提交于
-
由 Nick Sutterer 提交于
-
- 25 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 21 12月, 2011 1 次提交
-
-
由 Rahul P. Chaudhari 提交于
-
- 03 10月, 2011 1 次提交
-
-
由 Alexey Vakhov 提交于
-
- 02 10月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 23 8月, 2011 2 次提交
-
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
- 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.
-
- 11 6月, 2011 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 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.
-
- 22 5月, 2011 1 次提交
-
-
由 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
-
- 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
-
- 27 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 06 9月, 2010 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 05 9月, 2010 2 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
- 24 8月, 2010 1 次提交
-
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 17 8月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 02 8月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 22 7月, 2010 1 次提交
-
-
由 Brian Rose 提交于
Fixed a globbed route issue where slashes were being escaped, causing assert_routing to fail. [#5135 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 18 4月, 2010 1 次提交
-
-
由 David Chelimsky 提交于
-
- 09 4月, 2010 1 次提交
-
-
由 Michael Koziarski 提交于
-
- 31 3月, 2010 1 次提交
-
-
由 Joshua Peek 提交于
-
- 04 3月, 2010 2 次提交
-
-
由 Carl Lerche 提交于
* Refactored ActionPatch to use fullpath instead
-
由 Carl Lerche 提交于
-