File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed
Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def run
1919 add_lib args [ 'LIBRARY' ]
2020 end
2121 end
22-
22+
2323 private
2424
2525 def lib_source
Original file line number Diff line number Diff line change 2121 context 'with an unrecognized library' do
2222 it 'raises an error' do
2323 expect { subject . execute %w[ add no-such-lib ] } . to raise_approval ( 'cli/add/no-lib-error' )
24+ . diff ( 5 )
2425 end
2526 end
2627
Original file line number Diff line number Diff line change 2121 end
2222
2323 it 'returns Library objects as values' do
24- expect ( subject . libraries . values . map { | a | a . class } . uniq ) . to eq [ Library ]
24+ expect ( subject . libraries . values . map ( & : class) . uniq ) . to eq [ Library ]
2525 end
2626 end
2727end
Original file line number Diff line number Diff line change 6161
6262 describe '#find_file' do
6363 let ( :path ) { "#{ Settings . target_dir } /src/lib/colors.sh" }
64-
64+
6565 it 'returns a file from the library' do
6666 expect ( subject . find_file path ) . to be_a Hash
6767 end
Original file line number Diff line number Diff line change 1111 result = SimpleCov . result
1212 if result . total_branches &.positive?
1313 covered_branches_percent = 100.0 * result . covered_branches / result . total_branches
14- puts "Branch coverage: #{ result . covered_branches } / #{ result . total_branches } branches (#{ covered_branches_percent . round ( 2 ) } %) covered."
14+ puts "Branch coverage: #{ result . covered_branches } / #{ result . total_branches } branches " \
15+ "(#{ covered_branches_percent . round ( 2 ) } %) covered."
1516 end
1617 end
1718end
You can’t perform that action at this time.
0 commit comments