+ create(:note) do |note|
+ create(:note_comment, :note => note, :author => users(:normal_user))
+ end
+ create(:note) do |note|
+ create(:note_comment, :note => note, :author => users(:second_public_user))
+ end
+ create(:note, :status => "hidden") do |note|
+ create(:note_comment, :note => note, :author => users(:second_public_user))
+ end
+
+ # Note that the table rows include a header row
+ get :mine, :display_name => "test"
+ assert_response :success
+ assert_select "table.note_list tr", :count => 2
+
+ get :mine, :display_name => "pulibc_test2"
+ assert_response :success
+ assert_select "table.note_list tr", :count => 2
+
+ get :mine, :display_name => "non-existent"
+ assert_response :not_found
+
+ session[:user] = users(:moderator_user).id
+