refactor controller name

This commit is contained in:
Rimian Perkins 2017-02-15 13:30:28 +11:00
parent 1527bbd0b9
commit 4d2c52e3f2
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
module DiscoursePayments module DiscoursePayments
class ChoiceController < ApplicationController class PaymentsController < ApplicationController
def index def index
render json: {} render json: {}
end end

View File

@ -1,4 +1,4 @@
DiscoursePayments::Engine.routes.draw do DiscoursePayments::Engine.routes.draw do
resources :choice, only: [:create] resources :payments, only: [:create]
get 'users/:username/payments' => 'choice#show' get 'users/:username/payments' => 'payments#show'
end end

View File

@ -1,7 +1,7 @@
require 'rails_helper' require 'rails_helper'
module DiscoursePayments module DiscoursePayments
RSpec.describe ChoiceController, type: :controller do RSpec.describe PaymentsController, type: :controller do
routes { DiscoursePayments::Engine.routes } routes { DiscoursePayments::Engine.routes }
# #
it 'responds with ok' do it 'responds with ok' do