lib/roar/rails/test_case.rb in roar-rails-0.0.13 vs lib/roar/rails/test_case.rb in roar-rails-0.0.14
- old
+ new
@@ -27,10 +27,15 @@
super(action, params, nil, nil, http_method) # FIXME: for Rails <=3.1, only.
end
module Assertions
- require 'test_xml/test_unit'
+ if ::ActionPack::VERSION::MAJOR == 4
+ require 'test_xml/mini_test'
+ else
+ require 'test_xml/test_unit'
+ end
+
def assert_body(body, options={})
return assert_xml_equal body, response.body if options[:xml]
assert_equal body, response.body
end
end