From 7c33ee5ddfafe737add2a7f4c4975108f9196dbd Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 22 Dec 2019 11:39:22 +0100 Subject: [PATCH] Move version guard outside to make it clear the method was added in Ruby 2.5 --- spec/ruby/core/thread/to_s_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/ruby/core/thread/to_s_spec.rb b/spec/ruby/core/thread/to_s_spec.rb index 942d2716cf..85976177dc 100644 --- a/spec/ruby/core/thread/to_s_spec.rb +++ b/spec/ruby/core/thread/to_s_spec.rb @@ -1,8 +1,8 @@ require_relative '../../spec_helper' require_relative 'shared/to_s' -describe "Thread#to_s" do - ruby_version_is "2.5" do +ruby_version_is "2.5" do + describe "Thread#to_s" do it_behaves_like :thread_to_s, :to_s end end