discourse/lib/generators/plugin/templates/controller_spec.rb.erb

14 lines
263 B
Plaintext

require 'rails_helper'
describe <%= name %>::ActionsController do
before do
SiteSetting.queue_jobs = false
end
it 'can list' do
sign_in(Fabricate(:user))
get "/<%= dasherized_name %>/list.json"
expect(response.status).to eq(200)
end
end