Fix RSpec/MissingExampleGroupArgument cop (#25310)
This commit is contained in:
		@@ -73,7 +73,7 @@ RSpec.describe Api::V1::AccountsController do
 | 
			
		||||
    let(:scopes) { 'write:follows' }
 | 
			
		||||
    let(:other_account) { Fabricate(:account, username: 'bob', locked: locked) }
 | 
			
		||||
 | 
			
		||||
    context do
 | 
			
		||||
    context 'when posting to an other account' do
 | 
			
		||||
      before do
 | 
			
		||||
        post :follow, params: { id: other_account.id }
 | 
			
		||||
      end
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@ RSpec.describe Api::V1::Admin::AccountActionsController do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  describe 'POST #create' do
 | 
			
		||||
    context do
 | 
			
		||||
    context 'with type of disable' do
 | 
			
		||||
      before do
 | 
			
		||||
        post :create, params: { account_id: account.id, type: 'disable' }
 | 
			
		||||
      end
 | 
			
		||||
 
 | 
			
		||||
@@ -96,7 +96,7 @@ RSpec.describe Api::V1::Admin::DomainAllowsController do
 | 
			
		||||
  describe 'POST #create' do
 | 
			
		||||
    let!(:domain_allow) { Fabricate(:domain_allow, domain: 'example.com') }
 | 
			
		||||
 | 
			
		||||
    context do
 | 
			
		||||
    context 'with a valid domain' do
 | 
			
		||||
      before do
 | 
			
		||||
        post :create, params: { domain: 'foo.bar.com' }
 | 
			
		||||
      end
 | 
			
		||||
 
 | 
			
		||||
@@ -120,7 +120,7 @@ RSpec.describe Api::V1::StatusesController do
 | 
			
		||||
    describe 'POST #create' do
 | 
			
		||||
      let(:scopes) { 'write:statuses' }
 | 
			
		||||
 | 
			
		||||
      context do
 | 
			
		||||
      context 'with a basic status body' do
 | 
			
		||||
        before do
 | 
			
		||||
          post :create, params: { status: 'Hello world' }
 | 
			
		||||
        end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user