File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ :tests :
3
+ test_invalid_noop_response_is_ignored :
4
+ :comment : |
5
+ This should probably use UntaggedResponse, perhaps with an
6
+ UnparsedResponseData object for its #data.
7
+ :response : " * NOOP\r\n "
8
+ :expected : !ruby/struct:Net::IMAP::IgnoredResponse
9
+ raw_data : " * NOOP\r\n "
Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ def teardown
69
69
# RFC 5256: THREAD response
70
70
generate_tests_from fixture_file : "thread_responses.yml"
71
71
72
+ ############################################################################
73
+ # Workarounds or unspecified extensions:
74
+ generate_tests_from fixture_file : "quirky_behaviors.yml"
75
+
72
76
############################################################################
73
77
# More interesting tests about the behavior, either of the test or of the
74
78
# response data, should still use normal tests, below
@@ -82,15 +86,8 @@ def test_enable
82
86
assert_equal ( "SMTPUTF8" , response . data . first )
83
87
end
84
88
85
- def test_ignored_response
86
- parser = Net ::IMAP ::ResponseParser . new
87
- response = nil
88
- assert_nothing_raised do
89
- response = parser . parse ( "* NOOP\r \n " )
90
- end
91
- assert_instance_of ( Net ::IMAP ::IgnoredResponse , response )
92
- end
93
-
89
+ # todo: move this to response data tests file
90
+ # it's testing the mapping fn, not the parsing.
94
91
def test_uidplus_copyuid__uid_mapping
95
92
parser = Net ::IMAP ::ResponseParser . new
96
93
response = parser . parse (
You can’t perform that action at this time.
0 commit comments