mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-05 14:02:11 +00:00
refactor controller name
This commit is contained in:
parent
1527bbd0b9
commit
4d2c52e3f2
@ -1,5 +1,5 @@
|
|||||||
module DiscoursePayments
|
module DiscoursePayments
|
||||||
class ChoiceController < ApplicationController
|
class PaymentsController < ApplicationController
|
||||||
def index
|
def index
|
||||||
render json: {}
|
render json: {}
|
||||||
end
|
end
|
@ -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
|
||||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user