added test for notification dropdown #2998

This commit is contained in:
Diaspora Europe 2012-03-14 17:02:18 +01:00
parent e78fc82bea
commit 05f2be40e1

View file

@ -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