* Add: #437 ドメインブロックで「未ログインユーザーに非公開」の設定を「非公開」にコピーするマイグレーションコード * Fix test for LTS * Fix test
This commit is contained in:
parent
4719ca6525
commit
7694c62bc6
5 changed files with 22 additions and 26 deletions
|
@ -37,16 +37,6 @@ RSpec.describe 'Domain Blocks' do
|
|||
expect(body_as_json.pluck(:domain)).to_not include('hello.com')
|
||||
end
|
||||
end
|
||||
|
||||
context 'with hidden domain block from anonymous' do
|
||||
before { Fabricate(:domain_block, domain: 'hello.com', hidden_anonymous: true) }
|
||||
|
||||
it 'returns http success and dont include hidden record' do
|
||||
get api_v1_instance_domain_blocks_path
|
||||
|
||||
expect(body_as_json.pluck(:domain)).to_not include('hello.com')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with domain blocks set to users' do
|
||||
|
@ -84,16 +74,6 @@ RSpec.describe 'Domain Blocks' do
|
|||
expect(body_as_json.pluck(:domain)).to_not include('hello.com')
|
||||
end
|
||||
end
|
||||
|
||||
context 'with hidden domain block from anonymous' do
|
||||
before { Fabricate(:domain_block, domain: 'hello.com', hidden_anonymous: true) }
|
||||
|
||||
it 'returns http success and dont include hidden record' do
|
||||
get api_v1_instance_domain_blocks_path, headers: headers
|
||||
|
||||
expect(body_as_json.pluck(:domain)).to_not include('hello.com')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with domain blocks set to disabled' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue