From 40368deb8335a6fe462dd9b9a09f278d52e29018 Mon Sep 17 00:00:00 2001 From: Steven Miers Date: Fri, 13 Feb 2015 16:43:52 -0600 Subject: [PATCH] Fix test "for real". --- web/spec/features/in_session_spec.rb | 3 ++- web/spec/support/utilities.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/spec/features/in_session_spec.rb b/web/spec/features/in_session_spec.rb index 576b51bd0..693476818 100644 --- a/web/spec/features/in_session_spec.rb +++ b/web/spec/features/in_session_spec.rb @@ -59,7 +59,8 @@ describe "In a Session", :js => true, :type => :feature, :capybara_feature => tr end leave_music_session_sleep_delay - in_client(finder) { expect(page).to_not have_selector('div.track-label', title: user.name) } + in_client(finder) { expect(page).to_not have_selector("div.track-label[title='#{user.name}']") } + end many = 4 diff --git a/web/spec/support/utilities.rb b/web/spec/support/utilities.rb index 3f9afd7ff..8982fd5a1 100644 --- a/web/spec/support/utilities.rb +++ b/web/spec/support/utilities.rb @@ -637,7 +637,7 @@ def assert_all_tracks_seen(users=[]) users.each do |user| in_client(user) do users.reject {|u| u==user}.each do |other| - find('div.track-label', title: other.name) + find("div.track-label[title='#{other.name}']") #puts user.name + " is able to see " + other.name + "\'s track" end end