added test for notification dropdown #2998
This commit is contained in:
parent
e78fc82bea
commit
05f2be40e1
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue