aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/time/shared/asctime.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time/shared/asctime.rb')
-rw-r--r--spec/ruby/core/time/shared/asctime.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/ruby/core/time/shared/asctime.rb b/spec/ruby/core/time/shared/asctime.rb
new file mode 100644
index 0000000000..d096666863
--- /dev/null
+++ b/spec/ruby/core/time/shared/asctime.rb
@@ -0,0 +1,6 @@
+describe :time_asctime, shared: true do
+ it "returns a canonical string representation of time" do
+ t = Time.now
+ t.send(@method).should == t.strftime("%a %b %e %H:%M:%S %Y")
+ end
+end