From 69a7eaae389b49eb2a99c1c44c11b3d5004d186f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 16 Dec 2021 15:07:23 +0900 Subject: Use `to_s` and `puts` in tests `to_s` has the explict specification while `inspect` is often vague. --- spec/ruby/core/kernel/srand_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/ruby/core') diff --git a/spec/ruby/core/kernel/srand_spec.rb b/spec/ruby/core/kernel/srand_spec.rb index 6774d19284..90c1d09b82 100644 --- a/spec/ruby/core/kernel/srand_spec.rb +++ b/spec/ruby/core/kernel/srand_spec.rb @@ -12,7 +12,7 @@ describe "Kernel.srand" do end it "returns the previous seed value on the first call" do - ruby_exe('p srand(10)', options: '--disable-gems').chomp.should =~ /\A\d+\z/ + ruby_exe('print srand(10)', options: '--disable-gems').should =~ /\A\d+\z/ end it "seeds the RNG correctly and repeatably" do -- cgit v1.2.3