From 05f2be40e1061d0f4109b0e234834e161dc67024 Mon Sep 17 00:00:00 2001 From: Diaspora Europe Date: Wed, 14 Mar 2012 17:02:18 +0100 Subject: [PATCH] added test for notification dropdown #2998 --- spec/controllers/notifications_controller_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/controllers/notifications_controller_spec.rb b/spec/controllers/notifications_controller_spec.rb index bfc73ac6e..f468e5fc1 100644 --- a/spec/controllers/notifications_controller_spec.rb +++ b/spec/controllers/notifications_controller_spec.rb @@ -70,6 +70,12 @@ describe NotificationsController do Factory(:notification, :recipient => alice, :target => @post) end + it 'succeeds for notification dropdown' do + get :index, :format => :json + response.should be_success + response.body.should =~ /note_html/ + end + it 'paginates the notifications' do 25.times { Factory(:notification, :recipient => alice, :target => @post) } get :index