VRFS-2022 fix tests

This commit is contained in:
Brian Smith 2014-08-14 02:11:36 -04:00
parent 5691e6092f
commit 4b93b23282
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ describe ApiFeedsController do
get :index, { user: music_session.creator.id }
json = JSON.parse(response.body, :symbolize_names => true)
json[:entries].length.should == 0
json[:entries].length.should == 1
end
end
@ -171,7 +171,7 @@ describe ApiFeedsController do
get :index, { band: band.id }
json = JSON.parse(response.body, :symbolize_names => true)
json[:entries].length.should == 0
json[:entries].length.should == 1
end
end
end

View File

@ -218,7 +218,7 @@ describe "Welcome", :js => true, :type => :feature, :capybara_feature => true d
visit "/"
find('h1', text: 'Play music together over the Internet as if in the same room')
should_not have_selector('.feed-entry.music-session-history-entry')
should have_selector('.feed-entry.music-session-history-entry')
# try to mess with the music session history by removing all user histories (which makes it a bit invalid)
# but we really don't want the front page to ever crash if we can help it