blob: 2c0b2c8224a23d10078e25e25ec07e0502d7af14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
FactoryGirl.define do
factory :censor_rule do
text 'some text to redact'
replacement '[REDACTED]'
last_edit_editor 'FactoryGirl'
last_edit_comment 'Modified by rspec'
factory :regexp_censor_rule do
text '\w+@\w+'
regexp true
end
factory :info_request_censor_rule do
info_request
end
factory :public_body_censor_rule do
public_body
end
factory :user_censor_rule do
user
end
factory :global_censor_rule do
initialize_with { CensorRule.new(:allow_global => true) }
end
end
end
|