Convert intents spec controller->request ()

This commit is contained in:
Matt Jankowski 2025-03-25 05:07:22 -04:00 committed by GitHub
parent 2453b94198
commit 9bba2aab33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,15 +2,15 @@
require 'rails_helper'
RSpec.describe IntentsController do
render_views
RSpec.describe 'Intents' do
let(:user) { Fabricate(:user) }
before { sign_in user, scope: :user }
describe 'GET #show' do
subject { get :show, params: { uri: uri } }
describe 'GET /intent' do
subject { response }
before { get intent_path(uri: uri) }
context 'when schema is web+mastodon' do
context 'when host is follow' do