Commit e64ddc543692ccda9db33be48eba3adc6f67a368

Authored by Rodrigo Souto
1 parent bd7942b8

Fixing content_helper_test methods definition

Content helper test was redefining helper methods outside of it's own
block. This was intefering on the other tests.
Showing 1 changed file with 25 additions and 19 deletions   Show diff stats
test/unit/content_viewer_helper_test.rb
... ... @@ -133,25 +133,31 @@ class ContentViewerHelperTest < Test::Unit::TestCase
133 133  
134 134 include ActionView::Helpers::TextHelper
135 135  
136   -end
  136 + def show_date(date)
  137 + date.to_s
  138 + end
137 139  
138   -def show_date(date)
139   - date.to_s
140   -end
141   -def link_to(content, url)
  140 + def link_to(content, url)
142 141 "<a href='#{url}'>#{content}</a>"
143   -end
144   -def _(text)
145   - text
146   -end
147   -def will_paginate(arg1, arg2)
148   -end
149   -def strip_tags(html)
150   - html.gsub(/<[^>]+>/, '')
151   -end
152   -def url_for(args = {})
153   - ['http:/', args[:host], args[:profile], args[:page]].join('/')
154   -end
155   -def image_tag(file, args = {})
156   - file
  142 + end
  143 +
  144 + def _(text)
  145 + text
  146 + end
  147 +
  148 + def will_paginate(arg1, arg2)
  149 + end
  150 +
  151 + def strip_tags(html)
  152 + html.gsub(/<[^>]+>/, '')
  153 + end
  154 +
  155 + def url_for(args = {})
  156 + ['http:/', args[:host], args[:profile], args[:page]].join('/')
  157 + end
  158 +
  159 + def image_tag(file, args = {})
  160 + file
  161 + end
  162 +
157 163 end
... ...