test/unit/runner_tests.rb in deas-0.29.0 vs test/unit/runner_tests.rb in deas-0.30.0
- old
+ new
@@ -25,11 +25,12 @@
should have_readers :handler_class, :handler
should have_readers :request, :response, :session
should have_readers :params, :logger, :router, :template_source
should have_imeths :halt, :redirect, :content_type, :status, :headers
- should have_imeths :render, :partial, :send_file
+ should have_imeths :render, :source_render, :partial, :source_partial
+ should have_imeths :send_file
should "know its handler and handler class" do
assert_equal EmptyViewHandler, subject.handler_class
assert_instance_of subject.handler_class, subject.handler
end
@@ -49,10 +50,12 @@
assert_raises(NotImplementedError){ subject.redirect }
assert_raises(NotImplementedError){ subject.content_type }
assert_raises(NotImplementedError){ subject.status }
assert_raises(NotImplementedError){ subject.headers }
assert_raises(NotImplementedError){ subject.render }
+ assert_raises(NotImplementedError){ subject.source_render }
assert_raises(NotImplementedError){ subject.partial }
+ assert_raises(NotImplementedError){ subject.source_partial }
assert_raises(NotImplementedError){ subject.send_file }
end
end