summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-12-22 11:39:22 +0100
committerBenoit Daloze <eregontp@gmail.com>2019-12-22 11:39:22 +0100
commit7c33ee5ddfafe737add2a7f4c4975108f9196dbd (patch)
treedf648f4a68209732ebc8718fcda94163f5eda170
parentd76c8cfecdaa2960153b5b24ccd0d61f9af60abd (diff)
downloadruby-7c33ee5ddfafe737add2a7f4c4975108f9196dbd.tar.gz
Move version guard outside to make it clear the method was added in Ruby 2.5
-rw-r--r--spec/ruby/core/thread/to_s_spec.rb4
1 files 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