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
class ChoiceController < ApplicationController
class PaymentsController < ApplicationController
def index
render json: {}
end

View File

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

View File

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