From 4b93b232828ec063a999fe1dac4628ea2a30ffa3 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 14 Aug 2014 02:11:36 -0400 Subject: [PATCH] VRFS-2022 fix tests --- web/spec/controllers/api_feeds_controller_spec.rb | 4 ++-- web/spec/features/welcome_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/spec/controllers/api_feeds_controller_spec.rb b/web/spec/controllers/api_feeds_controller_spec.rb index e89a32f95..541366306 100644 --- a/web/spec/controllers/api_feeds_controller_spec.rb +++ b/web/spec/controllers/api_feeds_controller_spec.rb @@ -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 diff --git a/web/spec/features/welcome_spec.rb b/web/spec/features/welcome_spec.rb index 6207af5ae..78da6b97a 100644 --- a/web/spec/features/welcome_spec.rb +++ b/web/spec/features/welcome_spec.rb @@ -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