From cbe01333bea7bd74fa9f831cb8e9a88e84197c34 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 21 Jan 2022 15:32:33 +0500 Subject: [PATCH] Ruby: Fix tests --- pkgs/ruby/spec/lib/kernaux/snprintf1_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/ruby/spec/lib/kernaux/snprintf1_spec.rb b/pkgs/ruby/spec/lib/kernaux/snprintf1_spec.rb index bbf687d..439b888 100644 --- a/pkgs/ruby/spec/lib/kernaux/snprintf1_spec.rb +++ b/pkgs/ruby/spec/lib/kernaux/snprintf1_spec.rb @@ -42,7 +42,7 @@ RSpec.describe KernAux, '.snprintf1' do end context 'when format is too long' do - let(:format) { "%s#{' ' * 98}" } + let(:format) { "%s#{' ' * 99}" } specify do expect { snprintf1 }.to raise_error ArgumentError, 'invalid format' @@ -96,7 +96,7 @@ RSpec.describe KernAux, '.snprintf1' do end context 'when format is too long' do - let(:format) { "%s#{' ' * 98}" } + let(:format) { "%s#{' ' * 99}" } specify do expect { snprintf1 }.to raise_error ArgumentError, 'invalid format'