[前][次][番号順一覧][スレッド一覧]

ruby-changes:54420

From: eregon <ko1@a...>
Date: Sat, 29 Dec 2018 19:54:26 +0900 (JST)
Subject: [ruby-changes:54420] eregon:r66635 (trunk): Refactor Process.clock_gettime spec to give more information when it fails

eregon	2018-12-29 19:54:22 +0900 (Sat, 29 Dec 2018)

  New Revision: 66635

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66635

  Log:
    Refactor Process.clock_gettime spec to give more information when it fails

  Modified files:
    trunk/spec/ruby/core/process/clock_gettime_spec.rb
Index: spec/ruby/core/process/clock_gettime_spec.rb
===================================================================
--- spec/ruby/core/process/clock_gettime_spec.rb	(revision 66634)
+++ spec/ruby/core/process/clock_gettime_spec.rb	(revision 66635)
@@ -5,9 +5,10 @@ describe "Process.clock_gettime" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/clock_gettime_spec.rb#L5
   # RHEL: https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel_zlinux/ruby-trunk/log/20181229T063303Z.fail.html.gz
   # Solaris: https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-trunk/log/20181229T002409Z.fail.html.gz
   platform_is_not :windows, :linux, :solaris do
-    it 'can be called with all declared clocks' do
-      Process.constants.select { |c| c.to_s.start_with?('CLOCK_') }.each do |c|
-        Process.clock_gettime(Process.const_get(c)).should be_an_instance_of(Float)
+    Process.constants.select { |c| c.to_s.start_with?('CLOCK_') }.each do |c|
+      it "can be called with Process::#{c}" do
+        value = Process.const_get(c)
+        Process.clock_gettime(value).should be_an_instance_of(Float)
       end
     end
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]