test/support/view_handlers.rb in deas-0.16.0 vs test/support/view_handlers.rb in deas-0.17.0

- old
+ new

@@ -11,18 +11,26 @@ def run! render "my_template", :some => :option end end +class SendFileViewHandler + include Deas::ViewHandler + + def run! + send_file "my_file.txt", :some => :option + end +end + class FlagViewHandler include Deas::ViewHandler before{ @before_hook_called = true } after{ @after_hook_called = true } layout 'web' - attr_reader :before_init_called, :init_bang_called, :after_init_called, - :before_run_called, :run_bang_called, :after_run_called, - :before_hook_called, :after_hook_called, :second_before_init_called + attr_reader :before_init_called, :init_bang_called, :after_init_called + attr_reader :before_run_called, :run_bang_called, :after_run_called + attr_reader :before_hook_called, :after_hook_called, :second_before_init_called before_init do @before_init_called = true end before_init do