diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 21:17:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 11:17:41 +0900 |
commit | 5179c47087e7807162f1466ec61a797586de007f (patch) | |
tree | 106d584a459714b39a3b2fe1a87492fa2cdedc74 /spec/services/fan_out_on_write_service_spec.rb | |
parent | aef0051fd0723ff03175a8851497056ed07d1a83 (diff) |
Autofix Rubocops RSpec/ScatteredLet (#23725)
Diffstat (limited to 'spec/services/fan_out_on_write_service_spec.rb')
-rw-r--r-- | spec/services/fan_out_on_write_service_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/services/fan_out_on_write_service_spec.rb b/spec/services/fan_out_on_write_service_spec.rb index 59e15d230..3c294cf95 100644 --- a/spec/services/fan_out_on_write_service_spec.rb +++ b/spec/services/fan_out_on_write_service_spec.rb @@ -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) |