Fix DEPRECATION WARNING for spec/controllers/ban/*.rb

This commit is contained in:
Xavier J 2016-11-15 04:26:25 +01:00
parent 430d32dfca
commit 0fc81eb0da

View file

@ -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 }