Commit dfce2aab8aaddf3682b0f7d8895b497522a0381a
1 parent
4d2271f4
Exists in
master
and in
29 other branches
ActionItem280: removing parameters from img src before testing file
existance git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1706 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/test_helper.rb
@@ -181,7 +181,7 @@ class Test::Unit::TestCase | @@ -181,7 +181,7 @@ class Test::Unit::TestCase | ||
181 | 181 | ||
182 | # Test image references: | 182 | # Test image references: |
183 | (doc/'img').each do |img| | 183 | (doc/'img').each do |img| |
184 | - src = img.get_attribute( 'src' ) | 184 | + src = img.get_attribute( 'src' ).gsub(/\?[0-9]+$/, '') |
185 | if ! File.exists?( RAILS_ROOT.to_s() +'/public/'+ src ) | 185 | if ! File.exists?( RAILS_ROOT.to_s() +'/public/'+ src ) |
186 | flunk 'Image reference missed on HTML: "%s"' % src | 186 | flunk 'Image reference missed on HTML: "%s"' % src |
187 | end | 187 | end |