Chore: Added tests for subscriptions_controller (#483)

Added tests for subscriptions_controller
ref: #37
This commit is contained in:
Tim Lange
2020-02-17 03:21:45 +01:00
committed by GitHub
parent c32d391261
commit a2316d4d09
6 changed files with 62 additions and 17 deletions

View File

@@ -94,17 +94,15 @@ Rails.application.routes.draw do
end
# this block is only required if subscription via chargebee is enabled
if ENV['BILLING_ENABLED']
resources :subscriptions, only: [:index] do
collection do
get :summary
end
resources :subscriptions, only: [:index] do
collection do
get :summary
end
end
resources :webhooks, only: [] do
collection do
post :chargebee
end
resources :webhooks, only: [] do
collection do
post :chargebee
end
end
end