Project

General

Profile

Feature #31617 ยป 31617.patch

Go MAEDA, 2020-07-02 15:05

View differences:

app/views/welcome/robots.text.erb
13 13
Disallow: <%= url_for(issues_path(:sort => '')) %>
14 14
Disallow: <%= url_for(issues_path(:query_id => '')) %>
15 15
Disallow: <%= url_for(issues_path) %>?*set_filter=
16
Disallow: <%= url_for(issues_path(:trailing_slash => true)) %>*.pdf$
17
Disallow: <%= url_for(projects_path(:trailing_slash => true)) %>*.pdf$
test/integration/welcome_test.rb
31 31
    assert @response.body.match(%r{^Disallow: /projects/ecookbook/issues\r?$})
32 32
    assert @response.body.match(%r{^Disallow: /issues\?sort=\r?$})
33 33
    assert @response.body.match(%r{^Disallow: /issues\?\*set_filter=\r?$})
34
    assert @response.body.match(%r{^Disallow: /issues/\*\.pdf\$\r?$})
35
    assert @response.body.match(%r{^Disallow: /projects/\*\.pdf\$\r?$})
34 36
  end
35 37
end
    (1-1/1)