Module: Amrita2::RailsTestHelper

Defined in:
lib/amrita2/testsupport.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#compare_resultObject



159
160
161
162
163
164
165
166
# File 'lib/amrita2/testsupport.rb', line 159

def compare_result
  ActionView::Base.register_template_handler "a2html", Amrita2View::Base
  amrita2_result = yield
  ActionView::Base.unregister_template_handler "a2html"
  erb_result = yield
  assert_equal_as_xml(erb_result, amrita2_result)
  #assert_dom_equal(amrita2_result, erb_result)
end