File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1488,13 +1488,18 @@ def metadata_hash(*args)
1488
1488
config . formatter = :documentation
1489
1489
} . to change { config . formatters . size } . from ( 0 ) . to ( 1 )
1490
1490
1491
+ # notify triggers the formatter setup, there are two due to the already configured
1492
+ # documentation formatter and deprecation formatter
1491
1493
expect {
1492
1494
config . reporter . notify :message , double ( :message => 'Triggers formatter setup' )
1493
1495
} . to change { config . formatters . size } . from ( 1 ) . to ( 2 )
1494
1496
end
1495
1497
1496
1498
it 'still configures a default formatter when none specified' do
1497
1499
config . reporter . register_listener double ( :message => nil ) , :message
1500
+
1501
+ # notify triggers the formatter setup, there are two due to the default
1502
+ # (progress) and deprecation formatter
1498
1503
expect {
1499
1504
config . reporter . notify :message , double ( :message => 'Triggers formatter setup' )
1500
1505
} . to change { config . formatters . size } . from ( 0 ) . to ( 2 )
You can’t perform that action at this time.
0 commit comments