From 79ebdc34437b533a037d192118127a74710ffb53 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 15 Oct 2018 23:35:51 +0200 Subject: [PATCH] =?UTF-8?q?Ban::SearchController=20=E2=86=92=20AddressCont?= =?UTF-8?q?roller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ban/search_controller.rb => address_controller.rb} | 2 +- config/routes.rb | 6 ++---- ...search_controller_spec.rb => address_controller_spec.rb} | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) rename app/controllers/{ban/search_controller.rb => address_controller.rb} (90%) rename spec/controllers/{ban/search_controller_spec.rb => address_controller_spec.rb} (96%) diff --git a/app/controllers/ban/search_controller.rb b/app/controllers/address_controller.rb similarity index 90% rename from app/controllers/ban/search_controller.rb rename to app/controllers/address_controller.rb index e45a4177e..61835f8fb 100644 --- a/app/controllers/ban/search_controller.rb +++ b/app/controllers/address_controller.rb @@ -1,4 +1,4 @@ -class Ban::SearchController < ApplicationController +class AddressController < ApplicationController def get request = params[:request] diff --git a/config/routes.rb b/config/routes.rb index 1a479b23e..ac75b0c09 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -250,10 +250,8 @@ Rails.application.routes.draw do # Addresses # - namespace :ban do - get 'search' => 'search#get' - get 'address_point' => 'search#get_address_point' - end + get 'ban/search' => 'address#get' + get 'ban/address_point' => 'address#get_address_point' namespace :invites do post 'dossier/:dossier_id' => '/invites#create', as: 'dossier' diff --git a/spec/controllers/ban/search_controller_spec.rb b/spec/controllers/address_controller_spec.rb similarity index 96% rename from spec/controllers/ban/search_controller_spec.rb rename to spec/controllers/address_controller_spec.rb index f0e381ec8..e2b6260e7 100644 --- a/spec/controllers/ban/search_controller_spec.rb +++ b/spec/controllers/address_controller_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Ban::SearchController, type: :controller do +describe AddressController, type: :controller do describe '#GET get' do subject { get :get, params: { request: request } }