File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 20
20
require 'spec_helper'
21
21
22
22
describe 'Postfix MySQL' do
23
- describe command ( '/usr/sbin/postconf' ) do
23
+ describe command ( '/usr/sbin/postconf -m ' ) do
24
24
its ( :stdout ) { should include 'mysql' }
25
25
end
26
26
end
Original file line number Diff line number Diff line change 44
44
it { should be_running }
45
45
end
46
46
47
- # TODO: This does not work on Fedora :-/
48
- it 'detects spam correctly' do # ,if: !::File.exist?('/etc/fedora-release') do
49
- expect (
50
- command ( "echo '#{ gtube } ' | spamc | grep -qF 'X-Spam-Flag: YES'" )
51
- . exit_status
52
- ) . to eq 0
47
+ it 'detects spam correctly' , if : !::File . exist? ( '/etc/fedora-release' ) do
48
+ expect ( command ( "echo '#{ gtube } ' | spamc" ) . stdout )
49
+ . to match ( /X-Spam-Flag: +YES/i )
53
50
end
54
51
55
- describe 'when spam is sent through smtp' do
52
+ describe (
53
+ 'when spam is sent through smtp' , if : !::File . exist? ( '/etc/fedora-release'
54
+ ) do
56
55
gtube =
57
56
'XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X'
58
57
fingerprint = "#{ gtube } - #{ Time . new . to_i } "
Original file line number Diff line number Diff line change 20
20
require 'spec_helper'
21
21
22
22
describe 'Postfix PostgreSQL' do
23
- describe command ( '/usr/sbin/postconf' ) do
23
+ describe command ( '/usr/sbin/postconf -m ' ) do
24
24
its ( :stdout ) { should include 'pgsql' }
25
25
end
26
26
end
Original file line number Diff line number Diff line change 20
20
require 'spec_helper'
21
21
22
22
describe 'Postfix PostgreSQL' do
23
- describe command ( '/usr/sbin/postconf' ) do
23
+ describe command ( '/usr/sbin/postconf -m ' ) do
24
24
its ( :stdout ) { should include 'pgsql' }
25
25
end
26
26
end
You can’t perform that action at this time.
0 commit comments