Skip to content

Commit 713539c

Browse files
committed
Fix coverage
1 parent ba800ed commit 713539c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
bundler-cache: true
3535
- run: COVERAGE=1 bundle exec rspec
3636

37-
- uses: actions/upload-artifact@v2
37+
- uses: actions/upload-artifact@v4
3838
with:
3939
name: coverage-report
4040
path: 'coverage/*'

spec/tty_string_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@
406406
end
407407

408408
it 'renders the end of the string with the last written color code' do
409-
expect(" plain\e[31m\e[9D.red")
410-
.to render_with_style_as " .\e[31mred\e[0m plain\e[31m"
409+
expect(" plain\e[31m\e[10D.red")
410+
.to render_with_style_as " \e[31m.red\e[0m plain\e[31m"
411411
end
412412

413413
it 'assumes the string begins reset' do

0 commit comments

Comments
 (0)