Merge commit '13ab4b54e2
' into upstream-20241204-15
This commit is contained in:
commit
a6a237bc8e
228 changed files with 2678 additions and 1266 deletions
|
@ -63,6 +63,22 @@ RSpec.describe Mastodon::CLI::EmailDomainBlocks do
|
|||
.and(change(EmailDomainBlock, :count).by(1))
|
||||
end
|
||||
end
|
||||
|
||||
context 'with --with-dns-records true' do
|
||||
let(:domain) { 'host.example' }
|
||||
let(:arguments) { [domain] }
|
||||
let(:options) { { with_dns_records: true } }
|
||||
|
||||
before do
|
||||
configure_mx(domain: domain, exchange: 'other.host')
|
||||
end
|
||||
|
||||
it 'adds a new block for parent and children' do
|
||||
expect { subject }
|
||||
.to output_results('Added 2')
|
||||
.and(change(EmailDomainBlock, :count).by(2))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#remove' do
|
||||
|
|
|
@ -34,7 +34,7 @@ RSpec.describe SearchQueryTransformer do
|
|||
let(:query) { "#{operator}:\"abc\"" }
|
||||
|
||||
it 'raises an exception' do
|
||||
expect { subject }.to raise_error(Mastodon::FilterValidationError, 'Invalid date abc')
|
||||
expect { subject }.to raise_error(Date::Error)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue