spec/support/stub.rb in rails-timeago-1.1.1 vs spec/support/stub.rb in rails-timeago-1.2.0.rc1
- old
+ new
@@ -1,12 +1,14 @@
-class TimeagoStub
+class TimeagoStub
include Rails::Timeago::Helper
+ I18n.backend.store_translations :en, :hello => 'World'
+
def time_tag(time, content, options = {})
options = options.map { |k,v| "#{k}=\"#{v}\""}
"<time datetime=\"#{time.iso8601}\" #{options.join ' '}>#{content}</time>"
end
def time_ago_in_words(time)
"%time_ago_in_words%"
end
-end
\ No newline at end of file
+end