fix failing tests

This commit is contained in:
Mike Greiling 2016-12-08 16:13:23 -06:00
parent 68c1e3a156
commit 7f3fc26ec9
3 changed files with 4 additions and 4 deletions

View file

@ -21,9 +21,9 @@
.snippet-info .snippet-info
#{snippet.to_reference} · #{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 = link_to user_snippets_path(snippet.author) do
= snippet.author_name = snippet.author_name
.pull-right.snippet-updated-at .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')}

View file

@ -22,7 +22,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end end
step 'I click link "New snippet"' do step 'I click link "New snippet"' do
click_link "New snippet" first(:link, "New snippet").click
end end
step 'I click link "Snippet one"' do step 'I click link "Snippet one"' do

View file

@ -36,7 +36,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do
visit user_snippets_path(user) visit user_snippets_path(user)
wait_for_ajax() wait_for_ajax()
page.find('.js-timeago').hover page.find('.js-timeago.snippet-created-ago').hover
end end
it 'has the datetime formated correctly' do it 'has the datetime formated correctly' do