mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@83063a3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e658d45e1
commit
3fa5bd38af
494 changed files with 4133 additions and 3109 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue