Commit 9e629d47 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix incorrect spec description

parent 0d23755c
...@@ -148,7 +148,7 @@ RSpec.describe Projects::IssuesController do ...@@ -148,7 +148,7 @@ RSpec.describe Projects::IssuesController do
allow(Kaminari.config).to receive(:default_per_page).and_return(1) allow(Kaminari.config).to receive(:default_per_page).and_return(1)
end end
it 'does not redirect on out of bounds when non-html' do it 'redirects to last page when out of bounds on non-html requests' do
get :index, params: params.merge(page: last_page + 1), format: 'atom' get :index, params: params.merge(page: last_page + 1), format: 'atom'
expect(response).to have_gitlab_http_status(:redirect) expect(response).to have_gitlab_http_status(:redirect)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment