test/rails/test/functional/articles_controller_test.rb in gettext-1.90.0 vs test/rails/test/functional/articles_controller_test.rb in gettext-1.91.0

- old
+ new

@@ -5,11 +5,11 @@ RESULT_DIR = File.dirname(__FILE__) + "/../../test/result/" end # Re-raise errors caught by the controller. class ArticlesController; def rescue_action(e) raise e end; end - +GetText class ArticlesControllerTest < Test::Unit::TestCase fixtures :articles def setup @controller = ArticlesController.new @@ -22,10 +22,10 @@ def save_html(path) open(RESULT_DIR + path, "w"){|io| io.write @response.body} end def assert_html(path) - unless File.exist?(path) + unless File.exist?(RESULT_DIR + path) save_html(path) end ary = IO.readlines(RESULT_DIR + path) i = 0 @response.body.each_line{|line|