24 lines
515 B
Ruby
Raw Normal View History

2019-09-11 17:57:29 +10:00
# frozen_string_literal: true
require 'rails_helper'
module DiscoursePatrons
RSpec.describe PatronsController, type: :controller do
routes { DiscoursePatrons::Engine.routes }
2019-09-11 18:32:09 +10:00
2019-09-11 19:11:02 +10:00
describe 'index' do
it 'responds ok' do
get :index, format: :json
expect(response).to have_http_status(200)
end
end
2019-09-11 18:32:09 +10:00
2019-09-11 19:11:02 +10:00
describe 'create' do
it 'responds ok' do
post :create, params: { }, format: :json
2019-09-11 18:32:09 +10:00
expect(response).to have_http_status(200)
end
end
2019-09-11 17:57:29 +10:00
end
end