Commit 7f3fc26e authored by Mike Greiling's avatar Mike Greiling

fix failing tests

parent 68c1e3a1
......@@ -21,9 +21,9 @@
.snippet-info
#{snippet.to_reference} ·
authored #{time_ago_with_tooltip(snippet.created_at, placement: 'bottom')} by
authored #{time_ago_with_tooltip(snippet.created_at, placement: 'bottom', html_class: 'snippet-created-ago')} by
= link_to user_snippets_path(snippet.author) do
= snippet.author_name
.pull-right.snippet-updated-at
%span updated #{time_ago_with_tooltip(snippet.updated_at, placement: 'bottom', html_class: 'snippet_update_ago')}
%span updated #{time_ago_with_tooltip(snippet.updated_at, placement: 'bottom')}
......@@ -22,7 +22,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step 'I click link "New snippet"' do
click_link "New snippet"
first(:link, "New snippet").click
end
step 'I click link "Snippet one"' do
......
......@@ -36,7 +36,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do
visit user_snippets_path(user)
wait_for_ajax()
page.find('.js-timeago').hover
page.find('.js-timeago.snippet-created-ago').hover
end
it 'has the datetime formated correctly' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment