Skip to content

Commit cbaab90

Browse files
committed
fix ci
1 parent 5cf63e3 commit cbaab90

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

lib/bashly/commands/add.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

spec/bashly/commands/add_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
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

spec/bashly/library_source_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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
2727
end

spec/bashly/library_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
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

spec/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
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
1718
end

0 commit comments

Comments
 (0)