File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,11 @@ def fetch_data_class
45
45
end
46
46
47
47
test "#deconstruct_keys" do
48
- Net ::IMAP ::UIDFetchData . new ( 22222 , "UID" => 54_321 ) => {
49
- uid : 22222
50
- }
48
+ assert_warn ( /UIDs do not match/i ) do
49
+ Net ::IMAP ::UIDFetchData . new ( 22222 , "UID" => 54_321 ) => {
50
+ uid : 22222
51
+ }
52
+ end
51
53
end
52
54
end
53
55
@@ -102,7 +104,7 @@ def fetch_data_class
102
104
end
103
105
104
106
test "#internaldate parses a datetime value" do
105
- assert_nil fetch_data_class . new ( 123 , { "UID" => 456 } ) . internaldate
107
+ assert_nil fetch_data_class . new ( 123 , { "UID" => 123 } ) . internaldate
106
108
data = fetch_data_class . new ( 1 , { "INTERNALDATE" => "17-Jul-1996 02:44:25 -0700" } )
107
109
time = Time . parse ( "1996-07-17T02:44:25-0700" )
108
110
assert_equal time , data . internaldate
You can’t perform that action at this time.
0 commit comments