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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
254 B
Plaintext
Raw Normal View History

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