1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-01-29 16:08:16 +00:00
parent 1e658d45e1
commit 3fa5bd38af
494 changed files with 4133 additions and 3109 deletions

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/asctime', __FILE__)
describe "Time#asctime" do
it_behaves_like(:time_asctime, :asctime)
it_behaves_like :time_asctime, :asctime
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/asctime', __FILE__)
describe "Time#ctime" do
it_behaves_like(:time_asctime, :ctime)
it_behaves_like :time_asctime, :ctime
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/day', __FILE__)
describe "Time#day" do
it_behaves_like(:time_day, :day)
it_behaves_like :time_day, :day
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/isdst', __FILE__)
describe "Time#dst?" do
it_behaves_like(:time_isdst, :dst?)
it_behaves_like :time_isdst, :dst?
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/getgm', __FILE__)
describe "Time#getgm" do
it_behaves_like(:time_getgm, :getgm)
it_behaves_like :time_getgm, :getgm
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/getgm', __FILE__)
describe "Time#getutc" do
it_behaves_like(:time_getgm, :getutc)
it_behaves_like :time_getgm, :getutc
end

View file

@ -3,8 +3,8 @@ require File.expand_path('../shared/gm', __FILE__)
require File.expand_path('../shared/time_params', __FILE__)
describe "Time.gm" do
it_behaves_like(:time_gm, :gm)
it_behaves_like(:time_params, :gm)
it_behaves_like(:time_params_10_arg, :gm)
it_behaves_like(:time_params_microseconds, :gm)
it_behaves_like :time_gm, :gm
it_behaves_like :time_params, :gm
it_behaves_like :time_params_10_arg, :gm
it_behaves_like :time_params_microseconds, :gm
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/gmt_offset', __FILE__)
describe "Time#gmt_offset" do
it_behaves_like(:time_gmt_offset, :gmt_offset)
it_behaves_like :time_gmt_offset, :gmt_offset
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/gmtime', __FILE__)
describe "Time#gmtime" do
it_behaves_like(:time_gmtime, :gmtime)
it_behaves_like :time_gmtime, :gmtime
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/gmt_offset', __FILE__)
describe "Time#gmtoff" do
it_behaves_like(:time_gmt_offset, :gmtoff)
it_behaves_like :time_gmt_offset, :gmtoff
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/isdst', __FILE__)
describe "Time#isdst" do
it_behaves_like(:time_isdst, :isdst)
it_behaves_like :time_isdst, :isdst
end

View file

@ -3,9 +3,9 @@ require File.expand_path('../shared/local', __FILE__)
require File.expand_path('../shared/time_params', __FILE__)
describe "Time.local" do
it_behaves_like(:time_local, :local)
it_behaves_like(:time_local_10_arg, :local)
it_behaves_like(:time_params, :local)
it_behaves_like(:time_params_10_arg, :local)
it_behaves_like(:time_params_microseconds, :local)
it_behaves_like :time_local, :local
it_behaves_like :time_local_10_arg, :local
it_behaves_like :time_params, :local
it_behaves_like :time_params_10_arg, :local
it_behaves_like :time_params_microseconds, :local
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/day', __FILE__)
describe "Time#mday" do
it_behaves_like(:time_day, :mday)
it_behaves_like :time_day, :mday
end

View file

@ -3,9 +3,9 @@ require File.expand_path('../shared/local', __FILE__)
require File.expand_path('../shared/time_params', __FILE__)
describe "Time.mktime" do
it_behaves_like(:time_local, :mktime)
it_behaves_like(:time_local_10_arg, :mktime)
it_behaves_like(:time_params, :mktime)
it_behaves_like(:time_params_10_arg, :mktime)
it_behaves_like(:time_params_microseconds, :mktime)
it_behaves_like :time_local, :mktime
it_behaves_like :time_local_10_arg, :mktime
it_behaves_like :time_params, :mktime
it_behaves_like :time_params_10_arg, :mktime
it_behaves_like :time_params_microseconds, :mktime
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/month', __FILE__)
describe "Time#mon" do
it_behaves_like(:time_month, :mon)
it_behaves_like :time_month, :mon
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/month', __FILE__)
describe "Time#month" do
it_behaves_like(:time_month, :month)
it_behaves_like :time_month, :month
end

View file

@ -4,12 +4,12 @@ require File.expand_path('../shared/local', __FILE__)
require File.expand_path('../shared/time_params', __FILE__)
describe "Time.new" do
it_behaves_like(:time_now, :new)
it_behaves_like :time_now, :new
end
describe "Time.new" do
it_behaves_like(:time_local, :new)
it_behaves_like(:time_params, :new)
it_behaves_like :time_local, :new
it_behaves_like :time_params, :new
end
describe "Time.new with a utc_offset argument" do

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/now', __FILE__)
describe "Time.now" do
it_behaves_like(:time_now, :now)
it_behaves_like :time_now, :now
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/to_i', __FILE__)
describe "Time#to_i" do
it_behaves_like(:time_to_i, :to_i)
it_behaves_like :time_to_i, :to_i
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/to_i', __FILE__)
describe "Time#tv_sec" do
it_behaves_like(:time_to_i, :tv_sec)
it_behaves_like :time_to_i, :tv_sec
end

View file

@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/gmt_offset', __FILE__)
describe "Time#utc_offset" do
it_behaves_like(:time_gmt_offset, :utc_offset)
it_behaves_like :time_gmt_offset, :utc_offset
end

View file

@ -10,12 +10,12 @@ describe "Time#utc?" do
end
describe "Time.utc" do
it_behaves_like(:time_gm, :utc)
it_behaves_like(:time_params, :utc)
it_behaves_like(:time_params_10_arg, :utc)
it_behaves_like(:time_params_microseconds, :utc)
it_behaves_like :time_gm, :utc
it_behaves_like :time_params, :utc
it_behaves_like :time_params_10_arg, :utc
it_behaves_like :time_params_microseconds, :utc
end
describe "Time#utc" do
it_behaves_like(:time_gmtime, :utc)
it_behaves_like :time_gmtime, :utc
end