This project is archived and is in readonly mode.
Rendering Text with a Proc fails in testing
-
Andrew Bloom
- Tag changed from 2.3.2 to 2.3.2, actionpack, action_controller, test_process
-
Andrew Bloom
I wrote up a slightly more thorough explanation here: http://www.somethingunimportant....
-
Steve Madsen
- Tag changed from 2.3.2, actionpack, action_controller, test_process to 2.3.4, actionpack, action_controller, test_process
I can confirm that this problem still exists in 2.3.4, although this patch doesn't fix it for me because it only triggers the call to the proc due to assert_select. If you evaluate @response.body in the test or have set Mocha expectations on methods that should be called within the proc, those tests still fail.
I've reworked the patch slightly and existing tests pass, as well as the new test added by Andrew.
-
Steve Madsen
Minor change to my previous patch. That one caused problems for Mocha expectations because it allowed the proc to be called more than once.
-
Rohit Arondekar
- Importance changed from to
Any updates here?
Could somebody try and reproduce this on latest 2.x/3.x releases or branches? The ticket may be marked as stale if it's not updated in 2 months so if it's still an issue please leave a comment, preferably with a failing test for Rails.
-
Jeff Kreeftmeijer
Automatic cleanup of spam.
