Fix most rubocop issues (#2165)
* Run rubocop --autocorrect on app/, config/ and lib/, also manually fix some remaining style issues * Run rubocop --autocorrect-all on db/ * Run rubocop --autocorrect-all on `spec/` and fix remaining issues
This commit is contained in:
@@ -64,7 +64,7 @@ RSpec.describe PublicFeed, type: :model do
|
||||
end
|
||||
|
||||
it 'does not include local-only statuses' do
|
||||
expect(subject).not_to include(local_only_status.id)
|
||||
expect(subject).to_not include(local_only_status.id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -80,12 +80,14 @@ RSpec.describe PublicFeed, type: :model do
|
||||
end
|
||||
|
||||
it 'does not include local-only statuses' do
|
||||
expect(subject).not_to include(local_only_status.id)
|
||||
expect(subject).to_not include(local_only_status.id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'without local_only option but allow_local_only' do
|
||||
subject { described_class.new(viewer, allow_local_only: true).get(20).map(&:id) }
|
||||
|
||||
let(:viewer) { nil }
|
||||
|
||||
let!(:local_account) { Fabricate(:account, domain: nil) }
|
||||
@@ -94,8 +96,6 @@ RSpec.describe PublicFeed, type: :model do
|
||||
let!(:remote_status) { Fabricate(:status, account: remote_account) }
|
||||
let!(:local_only_status) { Fabricate(:status, account: local_account, local_only: true) }
|
||||
|
||||
subject { described_class.new(viewer, allow_local_only: true).get(20).map(&:id) }
|
||||
|
||||
context 'without a viewer' do
|
||||
let(:viewer) { nil }
|
||||
|
||||
@@ -108,7 +108,7 @@ RSpec.describe PublicFeed, type: :model do
|
||||
end
|
||||
|
||||
it 'does not include local-only statuses' do
|
||||
expect(subject).not_to include(local_only_status.id)
|
||||
expect(subject).to_not include(local_only_status.id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -147,7 +147,7 @@ RSpec.describe PublicFeed, type: :model do
|
||||
end
|
||||
|
||||
it 'does not include local-only statuses' do
|
||||
expect(subject).not_to include(local_only_status.id)
|
||||
expect(subject).to_not include(local_only_status.id)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user