This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/spec/controllers/oauth/authorized_applications_controller_spec.rb
Matt Jankowski 092fdc89fa Fix flashes partial render error for controllers which don't inherit from application controller (#2400)
* Add failing spec for oauth/authorized_applications controller

* Use explicit reference to flashes partial from admin layout

Because some of the controllers which use the admin layout do not inherit from
application controller, this partial is not in their view path.
2017-04-24 17:30:30 +02:00

22 lines
356 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
describe Oauth::AuthorizedApplicationsController do
render_views
before do
sign_in Fabricate(:user), scope: :user
end
describe 'GET #index' do
before do
get :index
end
it 'returns http success' do
expect(response).to have_http_status(:success)
end
end
end