]> source.dussan.org Git - redmine.git/commitdiff
Fixed tests broken by r10088.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Jul 2012 14:59:36 +0000 (14:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Jul 2012 14:59:36 +0000 (14:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10089 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/views/builders/json_test.rb
test/unit/lib/redmine/views/builders/xml_test.rb

index fc9c696bd254db3c395f89f47f16908144619d68..6bfbc9296dc4e840bafe60b68ca0dd1e833a0379 100644 (file)
@@ -87,7 +87,7 @@ class Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase
   end
 
   def assert_json_output(expected, &block)
-    builder = Redmine::Views::Builders::Json.new
+    builder = Redmine::Views::Builders::Json.new(ActionDispatch::TestRequest.new, ActionDispatch::TestResponse.new)
     block.call(builder)
     assert_equal(expected, ActiveSupport::JSON.decode(builder.output))
   end
index 33455d844215fda1e837c6efad682ab24ba9ee15..58619cfb4a15efaee7d74dd0849c58bfd820b797 100644 (file)
@@ -60,7 +60,7 @@ class Redmine::Views::Builders::XmlTest < ActiveSupport::TestCase
   end
 
   def assert_xml_output(expected, &block)
-    builder = Redmine::Views::Builders::Xml.new
+    builder = Redmine::Views::Builders::Xml.new(ActionDispatch::TestRequest.new, ActionDispatch::TestResponse.new)
     block.call(builder)
     assert_equal('<?xml version="1.0" encoding="UTF-8"?>' + expected, builder.output)
   end