Skip to content

Commit 484d46c

Browse files
committed
Fix write matcher to handle exceptions in block.
1 parent fc9710e commit 484d46c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/rdf/spec/matchers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ module Matchers
187187
RSpec::Matchers.define :write_each do |*messages|
188188
supports_block_expectations { true }
189189

190-
match do |block|
190+
match(notify_expectation_failures: true) do |block|
191191
messages.each { |message| expect(&block).to write(message) }
192192
end
193193
end
@@ -197,7 +197,7 @@ module Matchers
197197

198198
supports_block_expectations { true }
199199

200-
match do |block|
200+
match(notify_expectation_failures: true) do |block|
201201
@output =
202202
case io
203203
when :output then fake_stdout(&block)

0 commit comments

Comments
 (0)