mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-10 05:24:56 +00:00
24 lines
515 B
Ruby
24 lines
515 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
module DiscoursePatrons
|
|
RSpec.describe PatronsController, type: :controller do
|
|
routes { DiscoursePatrons::Engine.routes }
|
|
|
|
describe 'index' do
|
|
it 'responds ok' do
|
|
get :index, format: :json
|
|
expect(response).to have_http_status(200)
|
|
end
|
|
end
|
|
|
|
describe 'create' do
|
|
it 'responds ok' do
|
|
post :create, params: { }, format: :json
|
|
expect(response).to have_http_status(200)
|
|
end
|
|
end
|
|
end
|
|
end
|