test/unit/view_handler_tests.rb in deas-0.9.0 vs test/unit/view_handler_tests.rb in deas-0.10.0
- old
+ new
@@ -26,12 +26,12 @@
should "raise a NotImplementedError if run! is not overwritten" do
assert_raises(NotImplementedError){ subject.run! }
end
should "be able to render templates" do
- return_value = test_runner(RenderViewHandler).run
- assert_equal "my_template", return_value[0]
- assert_equal({ :some => :option }, return_value[1])
+ render_args = test_runner(RenderViewHandler).run
+ assert_equal "my_template", render_args.template_name
+ assert_equal({ :some => :option }, render_args.options)
end
should "allow specifying the layouts using #layout or #layouts" do
handler_class = Class.new{ include Deas::ViewHandler }