Merge remote-tracking branch 'parent/main' into upstream-20240624
This commit is contained in:
commit
af2727387e
88 changed files with 703 additions and 597 deletions
|
@ -28,14 +28,6 @@ describe CacheBuster do
|
|||
end
|
||||
|
||||
context 'when using default options' do
|
||||
around do |example|
|
||||
# Disables the CacheBuster.new deprecation warning about default arguments.
|
||||
# Remove this `silence` block when default arg support is removed from CacheBuster
|
||||
Rails.application.deprecators[:mastodon].silence do
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
||||
include_examples 'makes_request'
|
||||
end
|
||||
|
||||
|
|
|
@ -69,10 +69,10 @@ describe Extractor do
|
|||
end
|
||||
end
|
||||
|
||||
describe 'extract_cashtags_with_indices' do
|
||||
it 'returns []' do
|
||||
describe 'extract_entities_with_indices' do
|
||||
it 'returns empty array when cashtag present' do
|
||||
text = '$cashtag'
|
||||
extracted = described_class.extract_cashtags_with_indices(text)
|
||||
extracted = described_class.extract_entities_with_indices(text)
|
||||
expect(extracted).to eq []
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue