Commit Graph

21 Commits

Author SHA1 Message Date
Lucas Mazza
9a020bd8f9 Replace the flush parameter with a Hash. 2012-07-24 16:19:14 -03:00
grentis
8a130edb0f content_for with flush parameter 2011-12-29 21:59:55 +01:00
Rahul P. Chaudhari
b74f5b7398 Remove unused conditions for 1.9 2011-12-21 13:34:54 +05:30
Santiago Pastorino
c255e0eed5 Merge pull request #2799 from tomstuart/3-1-stable
Never return stored content from content_for when a block is given
2011-09-05 10:11:43 -03:00
José Valim
86a0f7f735 Add tests for content_for() for read, closes #475. 2011-05-10 10:22:09 +02:00
José Valim
33cc001f91 More cleanup and moving responsibilities around. 2011-05-01 13:40:12 +02:00
José Valim
ab105e6072 content_for should work with provide. 2011-04-16 11:34:07 +02:00
José Valim
29078ff8f1 Basic tests for streaming. Basic tests for provide. 2011-04-16 10:50:33 +02:00
José Valim
e30ca001ef Yo dawg, I heard you like streaming. So I put a fiber, inside a block, inside a body, so you can stream. 2011-04-16 10:28:47 +02:00
José Valim
fad214b9e1 Initial work on fibered layout. 2011-04-16 01:10:13 +02:00
Santiago Pastorino
3c7215bdce Test that capture doesn't escape twice 2010-11-02 20:02:55 -02:00
Jeff Kreeftmeijer
bb9c58eb4a Make sure capture's output gets html_escaped [#5545 state:resolved]
Also remove a duplicate test_link_to_unless assertion and add .html_safe to the
remaining one.

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-11-02 19:38:28 -02:00
José Valim
3c8e1f99b9 Remove NonConcattingString. 2010-08-29 21:15:00 -03:00
Santiago Pastorino
b1cfcedc8f Change returning with tap
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-25 16:33:04 +02:00
rohit
fc2480a277 Fixed 1 failure and 2 errors in ActionPack testsuite [#4613 state:commited]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 14:32:53 +02:00
Carlhuda
71c9337f45 All tests pass without memoizing view_context 2010-03-18 15:52:43 -07:00
Xavier Noria
9659d18c9b adds tests for #flush_output_buffer
[#4196 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-16 13:16:44 -07:00
Xavier Noria
986cac73e3 adds tests for #capture
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-16 13:10:54 -07:00
Xavier Noria
c5a877f142 adds test coverage for with_output_buffer
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-15 16:30:31 -07:00
Xavier Noria
a594a22267 with_output_buffer cannot assume there's an output_buffer
[#4182 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-15 11:26:51 -07:00
Darragh Curran
9cb8c812f2 Add content_for?(:name) helper to check if content_for(:name) is present [#1311 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-06-21 17:07:22 +01:00