Fix RSpec/MultipleSubjects cop (#24738)
This commit is contained in:
parent
bdcd8a9e88
commit
cf18cc2891
8 changed files with 11 additions and 25 deletions
|
@ -10,10 +10,10 @@ describe Api::Web::EmbedsController do
|
|||
before { sign_in user }
|
||||
|
||||
describe 'POST #create' do
|
||||
subject(:response) { post :create, params: { url: url } }
|
||||
|
||||
subject(:body) { JSON.parse(response.body, symbolize_names: true) }
|
||||
|
||||
let(:response) { post :create, params: { url: url } }
|
||||
|
||||
context 'when successfully finds status' do
|
||||
let(:status) { Fabricate(:status) }
|
||||
let(:url) { "http://#{Rails.configuration.x.web_domain}/@#{status.account.username}/#{status.id}" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue