test/unit/view_handler_tests.rb in deas-0.27.0 vs test/unit/view_handler_tests.rb in deas-0.28.0

- old
+ new

@@ -1,10 +1,11 @@ require 'assert' -require 'test/support/view_handlers' -require 'deas/test_helpers' require 'deas/view_handler' +require 'deas/test_helpers' +require 'test/support/view_handlers' + module Deas::ViewHandler class UnitTests < Assert::Context include Deas::TestHelpers @@ -72,9 +73,15 @@ should "render templates" do render_args = test_runner(RenderViewHandler).run assert_equal "my_template", render_args.template_name assert_equal({ :some => :option }, render_args.options) + end + + should "render partial templates" do + partial_args = test_runner(PartialViewHandler).run + assert_equal "my_partial", partial_args.template_name + assert_equal({:some => 'locals'}, partial_args.locals) end should "send files" do send_file_args = test_runner(SendFileViewHandler).run assert_equal "my_file.txt", send_file_args.file_path