diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-05-28 22:41:48 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-05-28 22:41:48 +0200 |
commit | a66bc2c01194a9c017c874a30db5b3b6bd95e966 (patch) | |
tree | 598d6375b44fd86f90c3477c73086f6fcf08d76c /spec/ruby/core/marshal | |
parent | d070523e7be4b95914adeef9a10401fba7718c5a (diff) |
Update to ruby/spec@9a501a8
Diffstat (limited to 'spec/ruby/core/marshal')
-rw-r--r-- | spec/ruby/core/marshal/dump_spec.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/ruby/core/marshal/dump_spec.rb b/spec/ruby/core/marshal/dump_spec.rb index b041a95d4b..53a0b3197d 100644 --- a/spec/ruby/core/marshal/dump_spec.rb +++ b/spec/ruby/core/marshal/dump_spec.rb @@ -449,14 +449,13 @@ describe "Marshal.dump" do zone = ":\tzoneI\"\bAST\x06:\x06EF" # Last is 'F' (US-ASCII) [ "#{base}#{offset}#{zone}", "#{base}#{zone}#{offset}" ].should include(dump) end - - it "dumps the zone, but not the offset if zone is UTC" do - dump = Marshal.dump(@utc) - zone = ":\tzoneI\"\bUTC\x06:\x06EF" # Last is 'F' (US-ASCII) - dump.should == "\x04\bIu:\tTime\r#{@utc_dump}\x06#{zone}" - end end + it "dumps the zone, but not the offset if zone is UTC" do + dump = Marshal.dump(@utc) + zone = ":\tzoneI\"\bUTC\x06:\x06EF" # Last is 'F' (US-ASCII) + dump.should == "\x04\bIu:\tTime\r#{@utc_dump}\x06#{zone}" + end end describe "with an Exception" do |