Merge commit 'ead13d4826a7ba1699d6bb310e58642b15687671' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2026-06-07 14:29:57 +02:00
commit c2e6cbb12b
166 files changed
+1123 -500

No files matched your search

@@ -17,7 +17,7 @@ RSpec.describe 'Settings / Exports / CustomFilters' do
{ 'custom_filters' => [
{
'title' => other_filter.phrase,
'expire_at' => nil,
'expires_at' => nil,
'context' => other_filter.context,
'action' => other_filter.action,
'keywords_attributes' => [{
@@ -31,7 +31,7 @@ RSpec.describe 'Settings / Exports / CustomFilters' do
},
{
'title' => filter.phrase,
'expire_at' => nil,
'expires_at' => nil,
'context' => filter.context,
'action' => filter.action,
'keywords_attributes' => [{
+5
View File
@@ -6,6 +6,9 @@ RSpec.describe 'Tags' do
describe 'GET /tags/:id' do
context 'when tag exists' do
let(:tag) { Fabricate :tag }
let(:status) { Fabricate :status }
before { status.tags << tag }
context 'with HTML format' do
before { get tag_path(tag) }
@@ -51,6 +54,8 @@ RSpec.describe 'Tags' do
.and have_cacheable_headers.with_vary('Accept, Accept-Language, Cookie')
expect(response.content_type)
.to start_with('application/rss+xml')
expect(response.body)
.to include(status.text)
end
end
end
+2
View File
@@ -26,10 +26,12 @@ RSpec.describe 'Admin::IpBlocks' do
# Valid with IP
fill_in 'ip_block_ip', with: '192.168.1.1'
fill_in 'ip_block_comment', with: 'Block explanation'
expect { submit_form }
.to change(IpBlock, :count).by(1)
expect(page)
.to have_text(I18n.t('admin.ip_blocks.created_msg'))
.and have_text('Block explanation')
end
def submit_form
+6 -1
View File
@@ -6,8 +6,11 @@ RSpec.describe 'Disputes Strikes' do
before { sign_in(current_user) }
describe 'viewing strike disputes' do
let!(:strike) { Fabricate(:account_warning, target_account: current_user.account, report:, status_ids: [status.id]) }
let(:current_user) { Fabricate(:user) }
let!(:strike) { Fabricate(:account_warning, target_account: current_user.account) }
let(:report) { Fabricate :report, category: :violation, rule_ids: rules.map(&:id), target_account: current_user.account }
let(:rules) { Fabricate.times 2, :rule }
let(:status) { Fabricate :status, account: current_user.account, text: 'Offensive text' }
it 'shows a list of strikes and details for each' do
visit disputes_strikes_path
@@ -18,6 +21,8 @@ RSpec.describe 'Disputes Strikes' do
expect(page)
.to have_title(strike_page_title)
.and have_text(strike.text)
.and have_text(rules.last.text)
.and have_text(status.text)
end
def strike_page_title