Fix DEPRECATION WARNING for spec/controllers/ban/*.rb
This commit is contained in:
parent
430d32dfca
commit
0fc81eb0da
1 changed files with 2 additions and 2 deletions
|
@ -2,13 +2,13 @@ require 'spec_helper'
|
||||||
|
|
||||||
describe Ban::SearchController, type: :controller do
|
describe Ban::SearchController, type: :controller do
|
||||||
describe '#GET' do
|
describe '#GET' do
|
||||||
|
|
||||||
let (:request) { '' }
|
let (:request) { '' }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
stub_request(:get, "http://api-adresse.data.gouv.fr/search?limit=5&q=").
|
stub_request(:get, "http://api-adresse.data.gouv.fr/search?limit=5&q=").
|
||||||
to_return(:status => 200, :body => 'Missing query', :headers => {})
|
to_return(:status => 200, :body => 'Missing query', :headers => {})
|
||||||
get :get, request: request
|
|
||||||
|
get :get, params: {request: request}
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(response.status).to eq 200 }
|
it { expect(response.status).to eq 200 }
|
||||||
|
|
Loading…
Reference in a new issue