summaryrefslogtreecommitdiff
path: root/spec/ruby/core/time
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time')
-rw-r--r--spec/ruby/core/time/asctime_spec.rb2
-rw-r--r--spec/ruby/core/time/ctime_spec.rb2
-rw-r--r--spec/ruby/core/time/day_spec.rb2
-rw-r--r--spec/ruby/core/time/dst_spec.rb2
-rw-r--r--spec/ruby/core/time/getgm_spec.rb2
-rw-r--r--spec/ruby/core/time/getutc_spec.rb2
-rw-r--r--spec/ruby/core/time/gm_spec.rb8
-rw-r--r--spec/ruby/core/time/gmt_offset_spec.rb2
-rw-r--r--spec/ruby/core/time/gmtime_spec.rb2
-rw-r--r--spec/ruby/core/time/gmtoff_spec.rb2
-rw-r--r--spec/ruby/core/time/isdst_spec.rb2
-rw-r--r--spec/ruby/core/time/local_spec.rb10
-rw-r--r--spec/ruby/core/time/mday_spec.rb2
-rw-r--r--spec/ruby/core/time/mktime_spec.rb10
-rw-r--r--spec/ruby/core/time/mon_spec.rb2
-rw-r--r--spec/ruby/core/time/month_spec.rb2
-rw-r--r--spec/ruby/core/time/new_spec.rb6
-rw-r--r--spec/ruby/core/time/now_spec.rb2
-rw-r--r--spec/ruby/core/time/to_i_spec.rb2
-rw-r--r--spec/ruby/core/time/tv_sec_spec.rb2
-rw-r--r--spec/ruby/core/time/utc_offset_spec.rb2
-rw-r--r--spec/ruby/core/time/utc_spec.rb10
22 files changed, 39 insertions, 39 deletions
diff --git a/spec/ruby/core/time/asctime_spec.rb b/spec/ruby/core/time/asctime_spec.rb
index 3303e06f21..1b2bb16fdf 100644
--- a/spec/ruby/core/time/asctime_spec.rb
+++ b/spec/ruby/core/time/asctime_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/ctime_spec.rb b/spec/ruby/core/time/ctime_spec.rb
index cf9c1ee850..dce85620e0 100644
--- a/spec/ruby/core/time/ctime_spec.rb
+++ b/spec/ruby/core/time/ctime_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/day_spec.rb b/spec/ruby/core/time/day_spec.rb
index 8e77446070..817942dbaf 100644
--- a/spec/ruby/core/time/day_spec.rb
+++ b/spec/ruby/core/time/day_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/dst_spec.rb b/spec/ruby/core/time/dst_spec.rb
index 05a0a213c5..4a05fa93a5 100644
--- a/spec/ruby/core/time/dst_spec.rb
+++ b/spec/ruby/core/time/dst_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/getgm_spec.rb b/spec/ruby/core/time/getgm_spec.rb
index f091b5c493..be8691feb1 100644
--- a/spec/ruby/core/time/getgm_spec.rb
+++ b/spec/ruby/core/time/getgm_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/getutc_spec.rb b/spec/ruby/core/time/getutc_spec.rb
index a6e74cfb98..5c70e3e7cc 100644
--- a/spec/ruby/core/time/getutc_spec.rb
+++ b/spec/ruby/core/time/getutc_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/gm_spec.rb b/spec/ruby/core/time/gm_spec.rb
index a6f2858216..3d3fdb16e7 100644
--- a/spec/ruby/core/time/gm_spec.rb
+++ b/spec/ruby/core/time/gm_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/gmt_offset_spec.rb b/spec/ruby/core/time/gmt_offset_spec.rb
index b7613eed2f..bf2adb7d78 100644
--- a/spec/ruby/core/time/gmt_offset_spec.rb
+++ b/spec/ruby/core/time/gmt_offset_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/gmtime_spec.rb b/spec/ruby/core/time/gmtime_spec.rb
index 49a1f10479..c888bb8f4d 100644
--- a/spec/ruby/core/time/gmtime_spec.rb
+++ b/spec/ruby/core/time/gmtime_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/gmtoff_spec.rb b/spec/ruby/core/time/gmtoff_spec.rb
index 505b5d0c1b..8ef61997fe 100644
--- a/spec/ruby/core/time/gmtoff_spec.rb
+++ b/spec/ruby/core/time/gmtoff_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/isdst_spec.rb b/spec/ruby/core/time/isdst_spec.rb
index de71bf68ff..6c5664ce2a 100644
--- a/spec/ruby/core/time/isdst_spec.rb
+++ b/spec/ruby/core/time/isdst_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/local_spec.rb b/spec/ruby/core/time/local_spec.rb
index 63c644e4ea..5c1894b910 100644
--- a/spec/ruby/core/time/local_spec.rb
+++ b/spec/ruby/core/time/local_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/mday_spec.rb b/spec/ruby/core/time/mday_spec.rb
index 5fbff299cc..e1b340e9cb 100644
--- a/spec/ruby/core/time/mday_spec.rb
+++ b/spec/ruby/core/time/mday_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/mktime_spec.rb b/spec/ruby/core/time/mktime_spec.rb
index 68ac1b90ac..9ff05d94a8 100644
--- a/spec/ruby/core/time/mktime_spec.rb
+++ b/spec/ruby/core/time/mktime_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/mon_spec.rb b/spec/ruby/core/time/mon_spec.rb
index 2408341143..0e52788ead 100644
--- a/spec/ruby/core/time/mon_spec.rb
+++ b/spec/ruby/core/time/mon_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/month_spec.rb b/spec/ruby/core/time/month_spec.rb
index 6323c6205a..c5e1c1c7fe 100644
--- a/spec/ruby/core/time/month_spec.rb
+++ b/spec/ruby/core/time/month_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/new_spec.rb b/spec/ruby/core/time/new_spec.rb
index a92715c81c..f81900a07b 100644
--- a/spec/ruby/core/time/new_spec.rb
+++ b/spec/ruby/core/time/new_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/now_spec.rb b/spec/ruby/core/time/now_spec.rb
index 399a1a22e2..3dd86ff7d5 100644
--- a/spec/ruby/core/time/now_spec.rb
+++ b/spec/ruby/core/time/now_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/to_i_spec.rb b/spec/ruby/core/time/to_i_spec.rb
index 1a733f02cf..1e88c12dd8 100644
--- a/spec/ruby/core/time/to_i_spec.rb
+++ b/spec/ruby/core/time/to_i_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/tv_sec_spec.rb b/spec/ruby/core/time/tv_sec_spec.rb
index 36f090be7b..40397d2e11 100644
--- a/spec/ruby/core/time/tv_sec_spec.rb
+++ b/spec/ruby/core/time/tv_sec_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/utc_offset_spec.rb b/spec/ruby/core/time/utc_offset_spec.rb
index 4be885f2e3..ec5dd3c810 100644
--- a/spec/ruby/core/time/utc_offset_spec.rb
+++ b/spec/ruby/core/time/utc_offset_spec.rb
@@ -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
diff --git a/spec/ruby/core/time/utc_spec.rb b/spec/ruby/core/time/utc_spec.rb
index f88b9c7cbc..cf267517fa 100644
--- a/spec/ruby/core/time/utc_spec.rb
+++ b/spec/ruby/core/time/utc_spec.rb
@@ -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