Update rubocop-rspec
to version 3.6.0 (#34497)
This commit is contained in:
parent
22ec828951
commit
6463415e06
41 changed files with 223 additions and 228 deletions
|
@ -56,7 +56,7 @@ RSpec.describe Mastodon::CLI::IpBlocks do
|
|||
end
|
||||
|
||||
context 'with valid IP addresses' do
|
||||
include_examples 'ip address blocking'
|
||||
it_behaves_like 'ip address blocking'
|
||||
end
|
||||
|
||||
context 'when a specified IP address is already blocked' do
|
||||
|
@ -84,7 +84,7 @@ RSpec.describe Mastodon::CLI::IpBlocks do
|
|||
.to('sign_up_requires_approval')
|
||||
end
|
||||
|
||||
include_examples 'ip address blocking'
|
||||
it_behaves_like 'ip address blocking'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -101,25 +101,25 @@ RSpec.describe Mastodon::CLI::IpBlocks do
|
|||
context 'with --comment option' do
|
||||
let(:options) { { severity: 'no_access', comment: 'Spam' } }
|
||||
|
||||
include_examples 'ip address blocking'
|
||||
it_behaves_like 'ip address blocking'
|
||||
end
|
||||
|
||||
context 'with --duration option' do
|
||||
let(:options) { { severity: 'no_access', duration: 10.days } }
|
||||
|
||||
include_examples 'ip address blocking'
|
||||
it_behaves_like 'ip address blocking'
|
||||
end
|
||||
|
||||
context 'with "sign_up_requires_approval" severity' do
|
||||
let(:options) { { severity: 'sign_up_requires_approval' } }
|
||||
|
||||
include_examples 'ip address blocking'
|
||||
it_behaves_like 'ip address blocking'
|
||||
end
|
||||
|
||||
context 'with "sign_up_block" severity' do
|
||||
let(:options) { { severity: 'sign_up_block' } }
|
||||
|
||||
include_examples 'ip address blocking'
|
||||
it_behaves_like 'ip address blocking'
|
||||
end
|
||||
|
||||
context 'when a specified IP address fails to be blocked' do
|
||||
|
|
|
@ -207,18 +207,18 @@ RSpec.describe Mastodon::RedisConfiguration do
|
|||
end
|
||||
end
|
||||
|
||||
include_examples 'setting a different driver'
|
||||
include_examples 'setting a namespace'
|
||||
include_examples 'sentinel support'
|
||||
it_behaves_like 'setting a different driver'
|
||||
it_behaves_like 'setting a namespace'
|
||||
it_behaves_like 'sentinel support'
|
||||
end
|
||||
|
||||
describe '#sidekiq' do
|
||||
subject { redis_environment.sidekiq }
|
||||
|
||||
include_examples 'secondary configuration', 'SIDEKIQ'
|
||||
include_examples 'setting a different driver'
|
||||
include_examples 'setting a namespace'
|
||||
include_examples 'sentinel support', 'SIDEKIQ'
|
||||
it_behaves_like 'secondary configuration', 'SIDEKIQ'
|
||||
it_behaves_like 'setting a different driver'
|
||||
it_behaves_like 'setting a namespace'
|
||||
it_behaves_like 'sentinel support', 'SIDEKIQ'
|
||||
end
|
||||
|
||||
describe '#cache' do
|
||||
|
@ -256,8 +256,8 @@ RSpec.describe Mastodon::RedisConfiguration do
|
|||
end
|
||||
end
|
||||
|
||||
include_examples 'secondary configuration', 'CACHE'
|
||||
include_examples 'setting a different driver'
|
||||
include_examples 'sentinel support', 'CACHE'
|
||||
it_behaves_like 'secondary configuration', 'CACHE'
|
||||
it_behaves_like 'setting a different driver'
|
||||
it_behaves_like 'sentinel support', 'CACHE'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue