Skip to content

Commit 1ce4927

Browse files
committed
Fix the tests on Ruby 2.0.x.
1 parent 4499bb3 commit 1ce4927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/abrt_handler_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
args << socket_path
127127
original_method.call(*args)
128128
end
129-
expect(syslog).to receive(:err).with("%s", /can't communicate with ABRT daemon, is it running\? No such file or directory -( connect\(2\) for)? #{socket_path}/)
129+
expect(syslog).to receive(:err).with("%s", /can't communicate with ABRT daemon, is it running\? No such file or directory -( connect\(2\) for)? "?#{socket_path}"?/)
130130
abrt.handle_exception exception
131131
end
132132

@@ -137,7 +137,7 @@
137137
args << __FILE__
138138
original_method.call(*args)
139139
end
140-
expect(syslog).to receive(:err).with("%s", /can't communicate with ABRT daemon, is it running\? Connection refused -( connect\(2\) for)? #{socket_path}/)
140+
expect(syslog).to receive(:err).with("%s", /can't communicate with ABRT daemon, is it running\? Connection refused -( connect\(2\) for)? "?#{socket_path}"?/)
141141
abrt.handle_exception exception
142142
end
143143
end

0 commit comments

Comments
 (0)