@ -36,11 +36,15 @@ describe 'robots.txt' do
end
it 'disallows global paths and paths from public project' do
expect ( page ) . to have_content ( 'Disallow: /calendar' )
expect ( page ) . to have_content ( 'Disallow: /activity' )
expect ( page ) . to have_content ( 'Disallow: /activities' )
expect ( page ) . to have_content ( 'Disallow: /search' )
expect ( page ) . to have_content ( " Disallow: /projects/ #{ project . identifier } /repository " )
expect ( page ) . to have_content ( " Disallow: /projects/ #{ project . identifier } /work_packages " )
expect ( page ) . to have_content ( " Disallow: /projects/ #{ project . identifier } /activity " )
[ project . identifier , project . id ] . each do | identifier |
expect ( page ) . to have_content ( " Disallow: /projects/ #{ identifier } /repository " )
expect ( page ) . to have_content ( " Disallow: /projects/ #{ identifier } /work_packages " )
expect ( page ) . to have_content ( " Disallow: /projects/ #{ identifier } /activity " )
expect ( page ) . to have_content ( " Disallow: /projects/ #{ identifier } /search " )
end
end
end