Refactor reply-fetching code and disable it by default (#34147)
This commit is contained in:
parent
46e13dd81c
commit
9db26db495
7 changed files with 15 additions and 35 deletions
|
@ -85,7 +85,6 @@ RSpec.describe Status::FetchRepliesConcern do
|
|||
|
||||
it 'shows the status as unsubscribed' do
|
||||
expect(Status.unsubscribed).to eq([status])
|
||||
expect(status.unsubscribed?).to be(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -96,7 +95,6 @@ RSpec.describe Status::FetchRepliesConcern do
|
|||
|
||||
it 'shows the status as unsubscribed' do
|
||||
expect(Status.unsubscribed).to eq([status])
|
||||
expect(status.unsubscribed?).to be(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -107,7 +105,6 @@ RSpec.describe Status::FetchRepliesConcern do
|
|||
|
||||
it 'shows the status as unsubscribed' do
|
||||
expect(Status.unsubscribed).to eq([status])
|
||||
expect(status.unsubscribed?).to be(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -118,14 +115,12 @@ RSpec.describe Status::FetchRepliesConcern do
|
|||
|
||||
it 'does not show the status as unsubscribed' do
|
||||
expect(Status.unsubscribed).to eq([])
|
||||
expect(status.unsubscribed?).to be(false)
|
||||
end
|
||||
end
|
||||
|
||||
context 'when the status has no followers' do
|
||||
it 'shows the status as unsubscribed' do
|
||||
expect(Status.unsubscribed).to eq([status])
|
||||
expect(status.unsubscribed?).to be(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue