Fix tests due to core changes

This commit is contained in:
Eric Davis
2011-08-08 10:32:04 -07:00
parent 4ade8de2c4
commit fbd38b3678
3 changed files with 10 additions and 8 deletions
@@ -19,6 +19,9 @@ class RedmineContracts::Hooks::ViewIssuesShowDetailsBottomTest < ActionControlle
@controller ||= ApplicationController.new
@controller.class.send(:include, ::Redmine::I18n)
@controller.response ||= ActionController::TestResponse.new
def @controller.api_request?
false
end
# Hack to support render_on
@controller.instance_variable_set('@template', template)
@controller.response = response