- 03 4月, 2013 1 次提交
-
-
由 Sam Ruby 提交于
-
- 15 3月, 2013 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Yves Senn 提交于
-
- 12 3月, 2013 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 01 3月, 2013 1 次提交
-
-
由 Justin Coyne 提交于
This worked in Rails 3.2, but was a regression in 4.0.0.beta1
-
- 04 2月, 2013 2 次提交
-
-
由 Yves Senn 提交于
previously when a partial was placed inside a directory (eg. '/dir/_partial'), `assert_template` did not replace the '_' prefix when looking through rendered tempaltes, which resulted in an error. I modified it to replace both, the leading '_' and the last '_' after a '/'.
-
由 Yves Senn 提交于
When `assert_template` is used with the :locals option, and the partial was not rendered, a method_missing error was raised. This changes first checks, if the partial actually was rendered and raises a descriptive error.
-
- 01 2月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 26 1月, 2013 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Bring back the same API we have with Request::Session.
-
由 Carlos Antonio da Silva 提交于
All ActionPack and Railties tests are passing. Closes #8891. [Carlos Antonio da Silva + Santiago Pastorino]
-
- 18 1月, 2013 2 次提交
-
-
由 Guillermo Iguaran 提交于
This reverts commit 637a7d9d, reversing changes made to 5937bd02.
-
由 robertomiranda 提交于
-
- 17 1月, 2013 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 01 1月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 26 11月, 2012 1 次提交
-
-
由 Roberto Soares 提交于
-
- 24 11月, 2012 2 次提交
-
-
由 Roberto Soares 提交于
-
由 Roberto Soares 提交于
For instance, it prevents false positive in this case: file = nil get :index assert_template("#{file}")
-
- 09 11月, 2012 2 次提交
-
-
由 James Coglan 提交于
Store FlashHashes in the session as plain hashes rather than custom objects with unstable class names and instance variables. Refactor FlashHash to take values for its ivars in the constructor, to pretty up FlashHash.from_session_value. Remove stale comment on FlashHash: it is no longer Marshaled in the session so we can change its implementation. Remove blank lines I introduced in controller/test_case.rb. Unit tests for FlashHash#to_session_value. Put in a compatibility layer to accept FlashHash serializations from Rails 3.0+. Test that Rails 3.2 session flashes are correctly converted to the new format. Remove code path for processing Rails 3.0 FlashHashes since they can no longer deserialize. Fix session['flash'] deletion condition: it will never be empty?, it will either be nil or a hash with 'discard' and 'flashes' keys.
-
由 Jon Leighton 提交于
This reverts commit 36376560, reversing changes made to 3148ed9a. Conflicts: actionpack/lib/action_dispatch/middleware/flash.rb Reason: it broke Sam's CI https://github.com/rails/rails/pull/8017#issuecomment-10210655
-
- 03 11月, 2012 1 次提交
-
-
由 James Coglan 提交于
Store FlashHashes in the session as plain hashes rather than custom objects with unstable class names and instance variables. Refactor FlashHash to take values for its ivars in the constructor, to pretty up FlashHash.from_session_value. Remove stale comment on FlashHash: it is no longer Marshaled in the session so we can change its implementation. Remove blank lines I introduced in controller/test_case.rb. Unit tests for FlashHash#to_session_value. Put in a compatibility layer to accept FlashHash serializations from Rails 3.0+. Test that Rails 3.2 session flashes are correctly converted to the new format. Remove code path for processing Rails 3.0 FlashHashes since they can no longer deserialize.
-
- 29 10月, 2012 1 次提交
-
-
由 Nikita Afanasenko 提交于
It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
-
- 28 10月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 11 10月, 2012 2 次提交
- 06 10月, 2012 1 次提交
-
-
由 Yves Senn 提交于
the documentation on #assert_template states that the :locals option is only available in view test cases: # In a view test case, you can also assert that specific locals are passed # to partials: I added a warning when it's passed in an inapropriate context to prevent a NoMethodError.
-
- 01 10月, 2012 1 次提交
-
-
由 Yves Senn 提交于
-
- 30 9月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Hugo Roque 提交于
Given Im rendering an template `/layout/hello.html.erb`, assert_template was passing with any string that matches. This behavior allowed false passing like: assert_template "layout" assert_template "out/hello" Now the passing possibilities are: assert_template "layout/hello" assert_template "hello" fixing assert_template bug when template matches expected, but not ends with Cherry Pick Merge: Fixes issue #3849 assert_template false positive taking redundant test off prevening incorrect assert_template when rendering with repeated names in path updating CHANGELOG with bugfix: assert_template false passing
-
- 27 9月, 2012 1 次提交
-
-
由 Andy Lindeman 提交于
-
- 25 9月, 2012 2 次提交
-
-
由 Mike Moore 提交于
Allow controller tests using the spec DSL to match strings. Add test coverage for the register_spec_type calls.
-
由 Mike Moore 提交于
Add tests for controller tests using the minitest spec DSL.
-
- 04 8月, 2012 1 次提交
-
-
由 Bogdan Gusiev 提交于
-
- 03 8月, 2012 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
- 30 7月, 2012 2 次提交
-
-
由 Aaron Patterson 提交于
responses. Processing controller actions in a separate thread allows us to work around the rack api - we can allow the user to set status and headers, then block until the first bytes are written. As soon as the first bytes are written, the main thread can return the status, headers, and (essentially) a queue for the body.
-
由 Aaron Patterson 提交于
-
- 29 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 28 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 10 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
minitest/spec provides `describe`, so deprecate the rails version and have people use the superclass version
-
- 06 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit 9669f6f7. This breaks Sam Ruby's tests for some reason. Revert until we figure it out.
-