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