From f80e9358f0faa78eb4e54a8ca817062af69b23b7 Mon Sep 17 00:00:00 2001 From: Steven Miers Date: Sun, 1 Feb 2015 19:29:21 -0600 Subject: [PATCH] Fix unit tests. --- monitor/spec/support/utilities.rb | 2 +- web/spec/features/in_session_spec.rb | 2 +- web/spec/support/utilities.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor/spec/support/utilities.rb b/monitor/spec/support/utilities.rb index be0e32722..694d9e604 100755 --- a/monitor/spec/support/utilities.rb +++ b/monitor/spec/support/utilities.rb @@ -430,7 +430,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', text: other.name) + find('div.track-label > span', text: other.name) #puts user.name + " is able to see " + other.name + "\'s track" end end diff --git a/web/spec/features/in_session_spec.rb b/web/spec/features/in_session_spec.rb index 0d4215320..f40487b74 100644 --- a/web/spec/features/in_session_spec.rb +++ b/web/spec/features/in_session_spec.rb @@ -59,7 +59,7 @@ 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', text: user.name) } + in_client(finder) { expect(page).to_not have_selector('div.track-label > span', text: user.name) } end many = 4 diff --git a/web/spec/support/utilities.rb b/web/spec/support/utilities.rb index 872bd736a..2b09adf4a 100644 --- a/web/spec/support/utilities.rb +++ b/web/spec/support/utilities.rb @@ -617,7 +617,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', text: other.name) + find('div.track-label > span', text: other.name) #puts user.name + " is able to see " + other.name + "\'s track" end end