diff --git a/spec/group_spec.rb b/spec/group_spec.rb index 660a40d5..968f9e31 100644 --- a/spec/group_spec.rb +++ b/spec/group_spec.rb @@ -28,7 +28,14 @@ end it "raises when an exception happens within the command call" do - expect { BrokenCounter.start(%w(1 2 --fail)) }.to raise_error(NameError, /undefined local variable or method `this_method_does_not_exist'/) + if RUBY_VERSION <= "3.4.0.alpha" + puts RUBY_VERSION + expect { BrokenCounter.start(%w(1 2 --fail)) }.to raise_error(NameError, /undefined local variable or method `this_method_does_not_exist'/) + else + puts RUBY_VERSION + + expect { BrokenCounter.start(%w(1 2 --fail)) }.to raise_error(NameError, /undefined local variable or method 'this_method_does_not_exist'/) + end end it "raises an error when a Thor group command expects arguments" do