refactor controller name
This commit is contained in:
parent
1527bbd0b9
commit
4d2c52e3f2
|
@ -1,5 +1,5 @@
|
|||
module DiscoursePayments
|
||||
class ChoiceController < ApplicationController
|
||||
class PaymentsController < ApplicationController
|
||||
def index
|
||||
render json: {}
|
||||
end
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue