projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to iD v2.26.2
[rails.git]
/
test
/
helpers
/
application_helper_test.rb
diff --git
a/test/helpers/application_helper_test.rb
b/test/helpers/application_helper_test.rb
index 06c1c09f85133fb359e007de5ff5c38902188d8d..7cd6bce89417fb40ae497c1debdc032817d2ab90 100644
(file)
--- a/
test/helpers/application_helper_test.rb
+++ b/
test/helpers/application_helper_test.rb
@@
-56,7
+56,7
@@
class ApplicationHelperTest < ActionView::TestCase
end
def test_friendly_date
end
def test_friendly_date
- date = friendly_date(Time.
new(2014, 3, 5, 18, 58, 23).utc
)
+ date = friendly_date(Time.
utc(2014, 3, 5, 18, 58, 23)
)
assert_match %r{^<span title=" *5 March 2014 at 18:58">.*</span>$}, date
date = friendly_date(Time.now.utc - 1.hour)
assert_match %r{^<span title=" *5 March 2014 at 18:58">.*</span>$}, date
date = friendly_date(Time.now.utc - 1.hour)