diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-12 13:13:16 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-12 13:13:16 -0500 |
commit | 100cdce21e6dafa1b5d32313436fc610e8c88648 (patch) | |
tree | b075f6fdbcbe02d04984873ea47cdb1574f91a96 /spec | |
parent | d047db910a7cbac7f61b74bb580df3986acb767e (diff) | |
download | gitlab-ce-100cdce21e6dafa1b5d32313436fc610e8c88648.tar.gz |
Make sure time_ago_with_tooltip is using a Time objectrs-time_ago_with_tooltip-conversion
Somehow this test existed on EE but not in CE, so it started failing
after a bad CE-to-EE merge.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index efc850eb705..30e353148a8 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -285,6 +285,10 @@ describe ApplicationHelper do it 'allows the script tag to be excluded' do expect(element(skip_js: true)).not_to include 'script' end + + it 'converts to Time' do + expect { helper.time_ago_with_tooltip(Date.today) }.not_to raise_error + end end describe 'render_markup' do |