From dfce2aab8aaddf3682b0f7d8895b497522a0381a Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sun, 27 Apr 2008 22:48:15 +0000 Subject: [PATCH] ActionItem280: removing parameters from img src before testing file existance --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index ab41789..070370b 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -181,7 +181,7 @@ class Test::Unit::TestCase # Test image references: (doc/'img').each do |img| - src = img.get_attribute( 'src' ) + src = img.get_attribute( 'src' ).gsub(/\?[0-9]+$/, '') if ! File.exists?( RAILS_ROOT.to_s() +'/public/'+ src ) flunk 'Image reference missed on HTML: "%s"' % src end -- libgit2 0.21.2