mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 09:51:24 +00:00
Partially fix export_spec
This commit is contained in:
parent
48c8b48df7
commit
9474197b43
|
@ -105,16 +105,15 @@ RSpec.describe Export do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#to_filters_csv' do
|
describe '#to_filters_csv' do
|
||||||
before { Fabricate.times(2, :custom_filters, account: account) }
|
before { Fabricate.times(2, :custom_filter, account: account) }
|
||||||
|
|
||||||
let(:export) { CSV.parse(subject.to_filters_csv) }
|
let(:export) { CSV.parse(subject.to_filters_csv) }
|
||||||
|
|
||||||
it 'returns a csv of custom filters' do
|
it 'returns a csv of custom filters' do
|
||||||
expect(export)
|
expect(export)
|
||||||
.to contain_exactly(
|
.to contain_exactly(
|
||||||
contain_exactly('Title', 'Context', 'Keywords', 'Action', 'Expire after'),
|
contain_exactly('Title', 'Context', 'Keywords', 'Whole Word', 'Action', 'Expire after'),
|
||||||
include('discourse', 'home,notifications', 'discourse', 'warn', be_blank),
|
include('discourse', '["home", "notifications"]', '["discourse"]', '[true]', 'warn', be_blank)
|
||||||
include(be_present)
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user