diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-10-26 20:53:01 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-10-26 20:53:01 +0200 |
commit | 664e96b1de816c813c29f61e16a2031a7af7ba86 (patch) | |
tree | 7f4691847cd6b3282812eea7e2be3758e08d1433 /spec/ruby/core/time/at_spec.rb | |
parent | 3eb0d50c0baae916f4486c264605b18e77bee0dc (diff) | |
download | ruby-664e96b1de816c813c29f61e16a2031a7af7ba86.tar.gz |
Update to ruby/spec@28a728b
Diffstat (limited to 'spec/ruby/core/time/at_spec.rb')
-rw-r--r-- | spec/ruby/core/time/at_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/time/at_spec.rb b/spec/ruby/core/time/at_spec.rb index 8434e8dd16..368eeb7fca 100644 --- a/spec/ruby/core/time/at_spec.rb +++ b/spec/ruby/core/time/at_spec.rb @@ -147,31 +147,31 @@ describe "Time.at" do ruby_version_is "2.5" do describe "passed [Time, Numeric, format]" do context ":nanosecond format" do - it "traits second argument as nanoseconds" do + it "treats second argument as nanoseconds" do Time.at(0, 123456789, :nanosecond).nsec.should == 123456789 end end context ":nsec format" do - it "traits second argument as nanoseconds" do + it "treats second argument as nanoseconds" do Time.at(0, 123456789, :nsec).nsec.should == 123456789 end end context ":microsecond format" do - it "traits second argument as microseconds" do + it "treats second argument as microseconds" do Time.at(0, 123456, :microsecond).nsec.should == 123456000 end end context ":usec format" do - it "traits second argument as microseconds" do + it "treats second argument as microseconds" do Time.at(0, 123456, :usec).nsec.should == 123456000 end end context ":millisecond format" do - it "traits second argument as milliseconds" do + it "treats second argument as milliseconds" do Time.at(0, 123, :millisecond).nsec.should == 123000000 end end |