mail-sympa 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,90 +1,153 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mail-sympa
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 0
10
- version: 1.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Daniel J. Berger
14
8
  - David Salisbury
15
9
  - Mark Sallee
16
- autorequire:
17
10
  bindir: bin
18
- cert_chain: []
19
-
20
- date: 2011-07-19 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- name: soap4r
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
15
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
16
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
17
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
18
+ bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
19
+ A+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj
20
+ u95KpkP7tA9erypnV7dpzBkzNlX14ACaFD/6pHoXoe2ltBxk3CCyyzx70mTqJpph
21
+ 75IB03ni9a8yqn8pmse+s83bFJOAqddSj009sGPcQO+QOWiNxqYv1n5EHcvj2ebO
22
+ 6hN7YTmhx7aSia4qL/quc4DlIaGMWoAhvML7u1fmo53CYxkKskfN8MOecq2vfEmL
23
+ iLu+SsVVEAufMDDFMXMJlvDsviolUSGMSNRTujkyCcJoXKYYxZSNtIiyd9etI0X3
24
+ ctu0uhrFyrMZXCedutvXNjUolD5r9KGBFSWH1R9u2I3n3SAyFF2yzv/7idQHLJJq
25
+ 74BMnx0FIq6fCpu5slAipvxZ3ZkZpEXZFr3cIBtO1gFvQWW7E/Y3ijliWJS1GQFq
26
+ 058qERadHGu1yu1dojmFRo6W2KZvY9al2yIlbkpDrD5MYQIDAQABo3cwdTAJBgNV
27
+ HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
28
+ AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
29
+ YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
30
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
31
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
32
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
33
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
34
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
35
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
36
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
37
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
38
+ -----END CERTIFICATE-----
39
+ date: 1980-01-02 00:00:00.000000000 Z
40
+ dependencies:
41
+ - !ruby/object:Gem::Dependency
42
+ name: savon
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.12'
48
+ type: :runtime
24
49
  prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 19
31
- segments:
32
- - 1
33
- - 5
34
- - 8
35
- version: 1.5.8
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.13'
36
62
  type: :runtime
37
- version_requirements: *id001
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.13'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
38
97
  description: Ruby interface for the Sympa mailing list server
39
98
  email: djberg96@gmail.com
40
99
  executables: []
41
-
42
100
  extensions: []
43
-
44
- extra_rdoc_files:
45
- - README
46
- - CHANGES
47
- - MANIFEST
48
- files:
49
- - CHANGES
101
+ extra_rdoc_files: []
102
+ files:
103
+ - CHANGES.md
104
+ - Gemfile
105
+ - MANIFEST.md
106
+ - README.md
107
+ - Rakefile
108
+ - certs/djberg96_pub.pem
109
+ - docker/Dockerfile
110
+ - docker/run_specs.rb
111
+ - docker/seed_sympa.pl
112
+ - docker/test-apache.conf
113
+ - docker/test-sympa.conf
114
+ - docker/test-syslog.conf
115
+ - docker/test-topics.conf
116
+ - lib/mail-sympa.rb
50
117
  - lib/mail/sympa.rb
51
118
  - mail-sympa.gemspec
52
- - MANIFEST
53
- - Rakefile
54
- - README
55
- - test/test_mail_sympa.rb
119
+ - spec/mail_sympa_spec.rb
120
+ - spec/soap_integration_spec.rb
121
+ - spec/spec_helper.rb
56
122
  homepage: http://github.com/djberg96/mail-sympa
57
- licenses:
58
- - Artistic 2.0
59
- post_install_message:
123
+ licenses:
124
+ - Artistic-2.0
125
+ metadata:
126
+ homepage_uri: https://github.com/djberg96/mail-sympa
127
+ bug_tracker_uri: https://github.com/djberg96/mail-sympa/issues
128
+ changelog_uri: https://github.com/djberg96/mail-sympa/blob/main/CHANGES.md
129
+ documentation_uri: https://github.com/djberg96/mail-sympa/wiki
130
+ source_code_uri: https://github.com/djberg96/mail-sympa
131
+ wiki_uri: https://github.com/djberg96/mail-sympa/wiki
60
132
  rdoc_options: []
61
-
62
- require_paths:
133
+ require_paths:
63
134
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
135
+ required_ruby_version: !ruby/object:Gem::Requirement
136
+ requirements:
67
137
  - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
- version: "0"
73
- required_rubygems_version: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ required_rubygems_version: !ruby/object:Gem::Requirement
141
+ requirements:
76
142
  - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
82
145
  requirements: []
83
-
84
- rubyforge_project:
85
- rubygems_version: 1.8.3
86
- signing_key:
87
- specification_version: 3
88
- summary: The mail-sympa library provides a Ruby interface to the Sympa mailing list server software. This is a convenient and pretty wrapper for the various SOAP functions that Sympa server publishes. See http://www.sympa.org for more information.
89
- test_files:
90
- - test/test_mail_sympa.rb
146
+ rubygems_version: 4.0.20
147
+ specification_version: 4
148
+ summary: The mail-sympa library provides a Ruby interface to the Sympa mailing list
149
+ server software. This is a convenient and pretty wrapper for the various SOAP functions
150
+ that Sympa server publishes. See http://www.sympa.org for more information.
151
+ test_files:
152
+ - spec/mail_sympa_spec.rb
153
+ - spec/soap_integration_spec.rb
metadata.gz.sig ADDED
Binary file
data/CHANGES DELETED
@@ -1,16 +0,0 @@
1
- = 1.1.0 - 19-Jul-2011
2
- * Added the authenticate_remote_app_and_run method to run in trusted context
3
- and support for Ruby 1.9+. Thanks go to Blair Christensen for patches.
4
-
5
- = 1.0.0 - 16-Jun-2011
6
- * Added the create_list and close_list methods and corresponding tests. Thanks
7
- go to Blair Christensen for both.
8
- * Added 0.1.1 changes to this file that I forgot.
9
- * Bumped the version to 1.0.0, as I have no more future plans for this library.
10
-
11
- = 0.1.1 - 17-Jan-2011
12
- * Fixed two parser warnings caused by missing commas.
13
- * Added a clean and default task to the Rakefile.
14
-
15
- = 0.1.0 - 13-Apr-2010
16
- * Initial release
data/MANIFEST DELETED
@@ -1,7 +0,0 @@
1
- * CHANGES
2
- * MANIFEST
3
- * README
4
- * Rakefile
5
- * mail-sympa.gemspec
6
- * lib/mail/sympa.rb
7
- * test/test_mail_sympa.rb
data/README DELETED
@@ -1,50 +0,0 @@
1
- = Description
2
- The mail-sympa library is Ruby interface for the Sympa mailing list management
3
- software.
4
-
5
- = Prerequisites
6
- soap4r 1.5.8 or later
7
-
8
- = Installation
9
- gem install mail-sympa
10
-
11
- = Synopsis (tentative)
12
- require 'mail/sympa'
13
-
14
- mail = Mail::Sympa.new(server, namespace)
15
- mail.login(email, password)
16
-
17
- # Enumerate over each list and inspect it
18
- puts mail.lists.each do |list|
19
- p list
20
- end
21
-
22
- # Add a user quietly
23
- mail.add('foo@bar.com', 'some_list', 'Mr. Foo', true)
24
-
25
- = Known Issues
26
- The Sympa#add and Sympa#del methods return an empty string instead of
27
- a boolean. I am unsure why.
28
-
29
- = Acknowledgements
30
- Thanks go to Blair Christensen for some nice patches for this library.
31
-
32
- = License
33
- Artistic 2.0
34
-
35
- = Copyright
36
- (C) 2010-2011 Daniel J. Berger, Mark Sallee, David Salisbury
37
- All Rights Reserved
38
-
39
- = Warranty
40
- This library is provided "as is" and without any express or
41
- implied warranties, including, without limitation, the implied
42
- warranties of merchantability and fitness for a particular purpose.
43
-
44
- = Notes
45
- See http://www.sympa.org for details.
46
-
47
- = Authors
48
- Daniel Berger
49
- David Salisbury
50
- Mark Sallee
@@ -1,335 +0,0 @@
1
- ##############################################################################
2
- # test_mail_sympa.rb
3
- #
4
- # This is the test suite for the mail-sympa library. You should run these
5
- # tests via the test rake task.
6
- #
7
- # In order for these tests to run successfully you must use the dbi-dbrc
8
- # library, and create an entry for 'test_sympa'. The user name should include
9
- # the full domain, e.g. foo@bar.org. and the driver should be set to the URL:
10
- #
11
- # test_sympa postmaster@foo.org xxx http://foo.bar.org/sympasoap
12
- #
13
- # For all tests to complete successfully, you must use admin credentials.
14
- ##############################################################################
15
- require 'rubygems'
16
- gem 'test-unit'
17
-
18
- require 'test/unit'
19
- require 'mail/sympa'
20
- require 'dbi/dbrc'
21
-
22
- class MailSympaTest < Test::Unit::TestCase
23
- def self.startup
24
- @@info = DBI::DBRC.new('test_sympa')
25
- @@url = @@info.driver
26
- end
27
-
28
- def setup
29
- @mail = Mail::Sympa.new(@@url)
30
- @user = @@info.user
31
- @pass = @@info.passwd
32
- @list = 'testlist'
33
- @nosub = 'partners'
34
- end
35
-
36
- # Because most methods won't work without logging in first
37
- def login
38
- @mail.login(@user, @pass)
39
- end
40
-
41
- test "version constant is expected value" do
42
- assert_equal('1.1.0', Mail::Sympa::VERSION)
43
- end
44
-
45
- test "endpoint method basic functionality" do
46
- assert_respond_to(@mail, :endpoint)
47
- assert_nothing_raised{ @mail.endpoint }
48
- assert_kind_of(String, @mail.endpoint)
49
- end
50
-
51
- test "endpoint method returns expected result" do
52
- assert_equal(@@url, @mail.endpoint)
53
- end
54
-
55
- test "endpoint method is a readonly attribute" do
56
- assert_raise(NoMethodError){ @mail.endpoint = 'foo' }
57
- end
58
-
59
- test "namespace method basic functionality" do
60
- assert_respond_to(@mail, :namespace)
61
- assert_nothing_raised{ @mail.namespace }
62
- assert_kind_of(String, @mail.namespace)
63
- end
64
-
65
- test "namespace method returns expected result" do
66
- assert_equal("urn:sympasoap", @mail.namespace)
67
- end
68
-
69
- test "namespace method is a readonly attrubite" do
70
- assert_raise(NoMethodError){ @mail.namespace = 'foo' }
71
- end
72
-
73
- test "login method basic functionality" do
74
- assert_respond_to(@mail, :login)
75
- end
76
-
77
- test "login method works as expected with proper credentials" do
78
- assert_nothing_raised{ @mail.login(@user, @pass) }
79
- assert_not_nil(@mail.cookie)
80
- assert_kind_of(String, @mail.login(@user, @pass))
81
- end
82
-
83
- test "login method raises an error if the credentials are invalid" do
84
- assert_raise(SOAP::FaultError){ @mail.login('bogus', 'bogus') }
85
- end
86
-
87
- test "login method requires two arguments" do
88
- assert_raise(ArgumentError){ @mail.login }
89
- assert_raise(ArgumentError){ @mail.login('bogus') }
90
- end
91
-
92
- test "lists method basic functionality" do
93
- login
94
- assert_respond_to(@mail, :lists)
95
- assert_nothing_raised{ @mail.lists }
96
- end
97
-
98
- test "lists method with no arguments returns all lists" do
99
- login
100
- assert_kind_of(Array, @mail.lists)
101
- assert_kind_of(String, @mail.lists.first)
102
- end
103
-
104
- test "lists method accepts a topic and subtopic" do
105
- login
106
- assert_kind_of(Array, @mail.lists(@list))
107
- assert_kind_of(Array, @mail.lists(@list, @list))
108
- end
109
-
110
- test "lists method returns empty array if topic or subtopic is not found" do
111
- login
112
- assert_equal([], @mail.lists('bogus'))
113
- assert_equal([], @mail.lists(@list, 'bogus'))
114
- end
115
-
116
- test "lists method accepts a maximum of two arguments" do
117
- assert_raise(ArgumentError){ @mail.lists(@list, @list, @list) }
118
- end
119
-
120
- test "complex_lists method basic functionality" do
121
- login
122
- assert_respond_to(@mail, :complex_lists)
123
- assert_nothing_raised{ @mail.complex_lists }
124
- end
125
-
126
- test "complex_lists method with no arguments returns all lists" do
127
- login
128
- assert_kind_of(Array, @mail.lists)
129
- assert_kind_of(SOAP::Mapping::Object, @mail.complex_lists.first)
130
- end
131
-
132
- test "complex_lists method accepts a topic and subtopic" do
133
- login
134
- assert_kind_of(Array, @mail.complex_lists(@list))
135
- assert_kind_of(Array, @mail.complex_lists(@list, @list))
136
- end
137
-
138
- test "lists method returns empty array if topic or subtopic is not found" do
139
- login
140
- assert_equal([], @mail.complex_lists('bogus'))
141
- assert_equal([], @mail.complex_lists(@list, 'bogus'))
142
- end
143
-
144
- test "lists method accepts a maximum of two arguments" do
145
- assert_raise(ArgumentError){ @mail.complex_lists(@list, @list, @list) }
146
- end
147
-
148
- test "info method basic functionality" do
149
- login
150
- assert_respond_to(@mail, :info)
151
- assert_nothing_raised{ @mail.info(@list) }
152
- end
153
-
154
- test "info method expected results" do
155
- login
156
- assert_kind_of(SOAP::Mapping::Object, @mail.info(@list))
157
- end
158
-
159
- test "review method basic functionality" do
160
- login
161
- assert_respond_to(@mail, :review)
162
- assert_nothing_raised{ @mail.review(@list) }
163
- end
164
-
165
- test "review method returns expected results" do
166
- login
167
- assert_kind_of(Array, @mail.review(@list))
168
- assert_kind_of(String, @mail.review(@list).first)
169
- end
170
-
171
- test "review method returns 'no_subscribers' if list has no subscribers" do
172
- login
173
- assert_equal(['no_subscribers'], @mail.review(@nosub))
174
- end
175
-
176
- test "review method raises an error if list isn't found" do
177
- login
178
- assert_raise(SOAP::FaultError){ @mail.review('bogusxxxyyyzzz') }
179
- end
180
-
181
- test "which basic functionality" do
182
- assert_respond_to(@mail, :which)
183
- end
184
-
185
- test "complex_which basic functionality" do
186
- assert_respond_to(@mail, :complex_which)
187
- end
188
-
189
- test "complexWhich is an alias for complex_which" do
190
- assert_alias_method(@mail, :complexWhich, :complex_which)
191
- end
192
-
193
- test "am_i basic functionality" do
194
- login
195
- assert_respond_to(@mail, :am_i?)
196
- assert_nothing_raised{ @mail.am_i?(@user, @list) }
197
- assert_nothing_raised{ @mail.am_i?(@user, @list, 'owner') }
198
- end
199
-
200
- test "am_i returns expected result" do
201
- login
202
- assert_boolean(@mail.am_i?(@user, @list))
203
- end
204
-
205
- test "am_i function name must be owner or editor" do
206
- assert_raise(Mail::Sympa::Error){ @mail.am_i?(@user, @list, 'bogus') }
207
- end
208
-
209
- test "amI is an alias for am_i?" do
210
- assert_alias_method(@mail, :amI, :am_i?)
211
- end
212
-
213
- test "add basic functionality" do
214
- assert_respond_to(@mail, :add)
215
- end
216
-
217
- test "add returns expected result" do
218
- login
219
- notify("The documentation says this should return a boolean")
220
- assert_boolean(@mail.add('test@foo.com', @list, 'test'))
221
- end
222
-
223
- test "add requires at least three arguments" do
224
- assert_raise(ArgumentError){ @mail.add }
225
- assert_raise(ArgumentError){ @mail.add('test@foo.com') }
226
- assert_raise(ArgumentError){ @mail.add('test@foo.com', @list) }
227
- end
228
-
229
- test "del basic functionality" do
230
- assert_respond_to(@mail, :del)
231
- end
232
-
233
- test "del returns expected result" do
234
- login
235
- notify("The documentation says this should return a boolean")
236
- assert_boolean(@mail.del('test@foo.com', @list))
237
- end
238
-
239
- test "delete is an alias for del" do
240
- assert_alias_method(@mail, :delete, :del)
241
- end
242
-
243
- test "del requires at least two arguments" do
244
- assert_raise(ArgumentError){ @mail.delete }
245
- assert_raise(ArgumentError){ @mail.delete('test@foo.com') }
246
- end
247
-
248
- test "subscribe basic functionality" do
249
- assert_respond_to(@mail, :subscribe)
250
- end
251
-
252
- test "subscribe expected results" do
253
- login
254
- assert_boolean(@mail.subscribe(@list, 'test'))
255
- end
256
-
257
- test "subscribe requires at least one argument" do
258
- assert_raise(ArgumentError){ @mail.subscribe }
259
- end
260
-
261
- test "signoff basic functionality" do
262
- assert_respond_to(@mail, :signoff)
263
- end
264
-
265
- test "signoff expected results" do
266
- login
267
- assert_boolean(@mail.signoff(@list))
268
- end
269
-
270
- test "unsubscribe is an alias for signoff" do
271
- assert_alias_method(@mail, :unsubscribe, :signoff)
272
- end
273
-
274
- test "signoff requires one argument only" do
275
- assert_raise(ArgumentError){ @mail.signoff }
276
- assert_raise(ArgumentError){ @mail.signoff(@user, @list) }
277
- end
278
-
279
- test "create_list basic functionality" do
280
- assert_respond_to(@mail, :create_list)
281
- end
282
-
283
- test "create_list returns expected result" do
284
- login
285
- assert_boolean(@mail.create_list("test-#{Time.now.to_i.to_s}", 'Test List'))
286
- end
287
-
288
- test "create_list requires at least two arguments" do
289
- assert_raise(ArgumentError){ @mail.create_list }
290
- assert_raise(ArgumentError){ @mail.create_list("test-#{Time.now.to_i.to_s}") }
291
- end
292
-
293
- test "close_list basic functionality" do
294
- assert_respond_to(@mail, :close_list)
295
- end
296
-
297
- test "close_list returns expected result" do
298
- login
299
- list_name = "test-#{Time.now.to_i.to_s}"
300
- @mail.create_list(list_name, 'Test List')
301
- notify("The documentation says this should return a boolean")
302
- assert_boolean(@mail.close_list(list_name))
303
- end
304
-
305
- test "close_list requires one argument only" do
306
- assert_raise(ArgumentError){ @mail.close_list }
307
- assert_raise(ArgumentError){ @mail.close_list("A", "B")}
308
- end
309
-
310
- test "authenticate_remote_app_and_run basic functionality" do
311
- assert_respond_to(@mail, :authenticate_remote_app_and_run)
312
- assert_respond_to(@mail, :authenticateRemoteAppAndRun)
313
- end
314
-
315
- test "authenticate_remote_app_and_run requires five arguments" do
316
- assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run }
317
- assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A") }
318
- assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B") }
319
- assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B", "C") }
320
- assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B", "C", "D") }
321
- assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B", "C", "D", "E", "F") }
322
- end
323
-
324
- def teardown
325
- @mail = nil
326
- @user = nil
327
- @pass = nil
328
- @list = nil
329
- end
330
-
331
- def self.shutdown
332
- @@url = nil
333
- @@info = nil
334
- end
335
- end