mirror of https://github.com/tailix/libkernaux.git
Ruby: Fix tests
This commit is contained in:
parent
65febb417f
commit
cbe01333be
|
@ -42,7 +42,7 @@ RSpec.describe KernAux, '.snprintf1' do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when format is too long' do
|
context 'when format is too long' do
|
||||||
let(:format) { "%s#{' ' * 98}" }
|
let(:format) { "%s#{' ' * 99}" }
|
||||||
|
|
||||||
specify do
|
specify do
|
||||||
expect { snprintf1 }.to raise_error ArgumentError, 'invalid format'
|
expect { snprintf1 }.to raise_error ArgumentError, 'invalid format'
|
||||||
|
@ -96,7 +96,7 @@ RSpec.describe KernAux, '.snprintf1' do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when format is too long' do
|
context 'when format is too long' do
|
||||||
let(:format) { "%s#{' ' * 98}" }
|
let(:format) { "%s#{' ' * 99}" }
|
||||||
|
|
||||||
specify do
|
specify do
|
||||||
expect { snprintf1 }.to raise_error ArgumentError, 'invalid format'
|
expect { snprintf1 }.to raise_error ArgumentError, 'invalid format'
|
||||||
|
|
Loading…
Reference in New Issue