spec/support/stub.rb in rails-timeago-1.4.3 vs spec/support/stub.rb in rails-timeago-2.0.0.beta1
- old
+ new
@@ -10,9 +10,9 @@
def time_ago_in_words(time)
"%time_ago_in_words%"
end
- def javascript_include_tag(path)
- "<script src=\"#{path}\"></script>"
+ def javascript_tag(source)
+ "<script>#{source}</script>"
end
end