From eedade0a0d7e7aa14f955a208e1531050af6e1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 13 Aug 2024 11:54:47 +0200 Subject: fix raise_error spec --- spec/node_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 785da42..f7f8e9a 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -73,7 +73,7 @@ describe Zorglub do end it 'should raise error when too much arguments' do - expect(-> { Node0.my_call '/with_2args/1/2/3' }).to raise_error ArgumentError + expect { Node0.my_call '/with_2args/1/2/3' }.to raise_error ArgumentError end it 'layout proc, method level layout and engine definitions should work' do -- cgit v1.1-2-g2b99