diff --git a/spec/ruby/optional/capi/fiber_spec.rb b/spec/ruby/optional/capi/fiber_spec.rb index 92bac22d1a..357033f860 100644 --- a/spec/ruby/optional/capi/fiber_spec.rb +++ b/spec/ruby/optional/capi/fiber_spec.rb @@ -49,8 +49,8 @@ describe "C-API Fiber function" do end end - describe "rb_fiber_raise" do - ruby_version_is '3.1' do + ruby_version_is '3.1' do + describe "rb_fiber_raise" do it "raises an exception on the resumed fiber" do fiber = Fiber.new do begin