Autofix Rubocops RSpec/ScatteredLet (#23725)
This commit is contained in:
		
							parent
							
								
									aef0051fd0
								
							
						
					
					
						commit
						5179c47087
					
				
					 9 changed files with 56 additions and 83 deletions
				
			
		|  | @ -2,6 +2,7 @@ require 'rails_helper' | |||
| 
 | ||||
| RSpec.describe FanOutOnWriteService, type: :service do | ||||
|   let(:last_active_at) { Time.now.utc } | ||||
|   let(:status) { Fabricate(:status, account: alice, visibility: visibility, text: 'Hello @bob #hoge') } | ||||
| 
 | ||||
|   let!(:alice) { Fabricate(:user, current_sign_in_at: last_active_at).account } | ||||
|   let!(:bob)   { Fabricate(:user, current_sign_in_at: last_active_at, account_attributes: { username: 'bob' }).account } | ||||
|  | @ -9,8 +10,6 @@ RSpec.describe FanOutOnWriteService, type: :service do | |||
| 
 | ||||
|   subject { described_class.new } | ||||
| 
 | ||||
|   let(:status) { Fabricate(:status, account: alice, visibility: visibility, text: 'Hello @bob #hoge') } | ||||
| 
 | ||||
|   before do | ||||
|     bob.follow!(alice) | ||||
|     tom.follow!(alice) | ||||
|  |  | |||
		Reference in a new issue