Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit a55aada

Browse files
committed
debug
1 parent 1f72bee commit a55aada

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

spec/rspec/core/formatters/base_text_formatter_spec.rb

+16-1
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,24 @@ def run_all_and_dump_failures
207207

208208
context "with a failed message expectation (rspec-mocks)" do
209209
it "does not show the error class" do
210-
group.example("example name") { expect("this").to receive(:that) }
210+
puts "HI! #{$stderr.output}"
211+
$stderr.reset!
212+
group.example("example name") do
213+
puts "Bonjour #{$stderr.output}"
214+
$stderr.reset!
215+
expect("this").to receive(:that)
216+
puts "Au revivor #{$stderr.output}"
217+
$stderr.reset!
218+
end
219+
puts "HELLO! #{$stderr.output}"
220+
$stderr.reset!
211221
run_all_and_dump_failures
222+
puts "Koniciwa! #{$stderr.output}"
223+
$stderr.reset!
212224
expect(formatter_output_without_formatter_module).not_to match(/RSpec::/m)
225+
puts "YOLO! #{$stderr.output}"
226+
$stderr.reset!
227+
raise 'meh'
213228
end
214229
end
215230

0 commit comments

Comments
 (0)