discourse-subscriptions/spec/controllers/discourse_patrons/patrons_controller_spec.rb

18 lines
381 B
Ruby
Raw Normal View History

2019-09-11 03:57:29 -04:00
# frozen_string_literal: true
require 'rails_helper'
module DiscoursePatrons
RSpec.describe PatronsController, type: :controller do
routes { DiscoursePatrons::Engine.routes }
2019-09-11 04:32:09 -04:00
it 'responds ok for anonymous users' do
post :create, params: {}, format: :json
aggregate_failures do
expect(response).to have_http_status(200)
end
end
2019-09-11 03:57:29 -04:00
end
end