osdn-client 0.0.20160304
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/osdn-client.rb +45 -0
- data/lib/osdn-client/api/default_api.rb +148 -0
- data/lib/osdn-client/api/project_api.rb +1752 -0
- data/lib/osdn-client/api/project_frs_api.rb +1033 -0
- data/lib/osdn-client/api/project_news_api.rb +673 -0
- data/lib/osdn-client/api/user_api.rb +76 -0
- data/lib/osdn-client/api_client.rb +318 -0
- data/lib/osdn-client/api_error.rb +24 -0
- data/lib/osdn-client/configuration.rb +177 -0
- data/lib/osdn-client/models/group.rb +298 -0
- data/lib/osdn-client/models/group_tool_flags.rb +236 -0
- data/lib/osdn-client/models/news.rb +206 -0
- data/lib/osdn-client/models/package.rb +198 -0
- data/lib/osdn-client/models/pong.rb +176 -0
- data/lib/osdn-client/models/rel_file.rb +256 -0
- data/lib/osdn-client/models/release.rb +228 -0
- data/lib/osdn-client/models/simple_chamber.rb +176 -0
- data/lib/osdn-client/models/simple_group.rb +176 -0
- data/lib/osdn-client/models/simple_user.rb +166 -0
- data/lib/osdn-client/models/skill.rb +176 -0
- data/lib/osdn-client/models/token.rb +186 -0
- data/lib/osdn-client/models/user.rb +272 -0
- data/lib/osdn-client/version.rb +3 -0
- data/osdn-client.gemspec +32 -0
- data/spec/api/DefaultApi_spec.rb +58 -0
- data/spec/api/ProjectApi_spec.rb +472 -0
- data/spec/api/ProjectFrsApi_spec.rb +285 -0
- data/spec/api/ProjectNewsApi_spec.rb +194 -0
- data/spec/api/UserApi_spec.rb +39 -0
- data/spec/models/GroupToolFlags_spec.rb +124 -0
- data/spec/models/Group_spec.rb +184 -0
- data/spec/models/News_spec.rb +94 -0
- data/spec/models/Package_spec.rb +84 -0
- data/spec/models/Pong_spec.rb +64 -0
- data/spec/models/RelFile_spec.rb +144 -0
- data/spec/models/Release_spec.rb +114 -0
- data/spec/models/SimpleChamber_spec.rb +64 -0
- data/spec/models/SimpleGroup_spec.rb +64 -0
- data/spec/models/SimpleUser_spec.rb +54 -0
- data/spec/models/Skill_spec.rb +64 -0
- data/spec/models/Token_spec.rb +74 -0
- data/spec/models/User_spec.rb +154 -0
- metadata +284 -0
data/osdn-client.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "osdn-client/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "osdn-client"
|
7
|
+
s.version = OSDNClient::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["OSDN Tech Team"]
|
10
|
+
s.email = ["admin@osdn.jp"]
|
11
|
+
s.homepage = "https://osdn.jp/"
|
12
|
+
s.summary = "OSDN API basic client library for ruby"
|
13
|
+
s.description = ""
|
14
|
+
s.license = "MIT"
|
15
|
+
|
16
|
+
|
17
|
+
s.add_runtime_dependency 'typhoeus', '~> 0.2', '>= 0.2.1'
|
18
|
+
s.add_runtime_dependency 'json', '~> 1.4', '>= 1.4.6'
|
19
|
+
|
20
|
+
s.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
|
21
|
+
s.add_development_dependency 'vcr', '~> 2.9', '>= 2.9.3'
|
22
|
+
s.add_development_dependency 'webmock', '~> 1.6', '>= 1.6.2'
|
23
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
24
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
25
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
26
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
|
27
|
+
|
28
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
29
|
+
s.test_files = `find spec/*`.split("\n")
|
30
|
+
s.executables = []
|
31
|
+
s.require_paths = ["lib"]
|
32
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for OSDNClient::DefaultApi
|
5
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'DefaultApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@instance = OSDNClient::DefaultApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of DefaultApi' do
|
18
|
+
it 'should create an instact of DefaultApi' do
|
19
|
+
@instance.should be_a(OSDNClient::DefaultApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for ping
|
24
|
+
#
|
25
|
+
# return pong for test
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [Pong]
|
28
|
+
describe 'ping test' do
|
29
|
+
it "should work" do
|
30
|
+
# assertion here
|
31
|
+
# should be_a()
|
32
|
+
# should be_nil
|
33
|
+
# should ==
|
34
|
+
# should_not ==
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# unit tests for token
|
39
|
+
#
|
40
|
+
# Get access token by access code.
|
41
|
+
# @param client_id Your application ID
|
42
|
+
# @param client_secret Your application secret (key)
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [String] :grant_type \"authorization_code\" or \"refresh_token\"
|
45
|
+
# @option opts [String] :code Set auth code issued by https://osdn.jp/account/oauth2ui/authorize for grant_type=authorization_code
|
46
|
+
# @option opts [String] :refresh_token Set refresh token to update access token.
|
47
|
+
# @return [Token]
|
48
|
+
describe 'token test' do
|
49
|
+
it "should work" do
|
50
|
+
# assertion here
|
51
|
+
# should be_a()
|
52
|
+
# should be_nil
|
53
|
+
# should ==
|
54
|
+
# should_not ==
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -0,0 +1,472 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for OSDNClient::ProjectApi
|
5
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'ProjectApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@instance = OSDNClient::ProjectApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of ProjectApi' do
|
18
|
+
it 'should create an instact of ProjectApi' do
|
19
|
+
@instance.should be_a(OSDNClient::ProjectApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for list_news
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [Integer] :group_id filter by group ID
|
28
|
+
# @return [Array<News>]
|
29
|
+
describe 'list_news test' do
|
30
|
+
it "should work" do
|
31
|
+
# assertion here
|
32
|
+
# should be_a()
|
33
|
+
# should be_nil
|
34
|
+
# should ==
|
35
|
+
# should_not ==
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# unit tests for create_news
|
40
|
+
#
|
41
|
+
#
|
42
|
+
# @param title news title
|
43
|
+
# @param body news body in OSDN Wiki format.
|
44
|
+
# @param group_id group_id the news created in
|
45
|
+
# @param [Hash] opts the optional parameters
|
46
|
+
# @return [String]
|
47
|
+
describe 'create_news test' do
|
48
|
+
it "should work" do
|
49
|
+
# assertion here
|
50
|
+
# should be_a()
|
51
|
+
# should be_nil
|
52
|
+
# should ==
|
53
|
+
# should_not ==
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for get_news
|
58
|
+
#
|
59
|
+
# Get single news object.
|
60
|
+
# @param news_id
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @return [News]
|
63
|
+
describe 'get_news test' do
|
64
|
+
it "should work" do
|
65
|
+
# assertion here
|
66
|
+
# should be_a()
|
67
|
+
# should be_nil
|
68
|
+
# should ==
|
69
|
+
# should_not ==
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# unit tests for delete_news
|
74
|
+
#
|
75
|
+
#
|
76
|
+
# @param news_id
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @return [nil]
|
79
|
+
describe 'delete_news test' do
|
80
|
+
it "should work" do
|
81
|
+
# assertion here
|
82
|
+
# should be_a()
|
83
|
+
# should be_nil
|
84
|
+
# should ==
|
85
|
+
# should_not ==
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# unit tests for update_news
|
90
|
+
#
|
91
|
+
#
|
92
|
+
# @param news_id
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @option opts [String] :title news title
|
95
|
+
# @option opts [String] :body news body in OSDN Wiki format.
|
96
|
+
# @return [News]
|
97
|
+
describe 'update_news test' do
|
98
|
+
it "should work" do
|
99
|
+
# assertion here
|
100
|
+
# should be_a()
|
101
|
+
# should be_nil
|
102
|
+
# should ==
|
103
|
+
# should_not ==
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for get_project
|
108
|
+
#
|
109
|
+
# Get project info.
|
110
|
+
# @param id_or_name numeric project id or project name
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @return [Group]
|
113
|
+
describe 'get_project test' do
|
114
|
+
it "should work" do
|
115
|
+
# assertion here
|
116
|
+
# should be_a()
|
117
|
+
# should be_nil
|
118
|
+
# should ==
|
119
|
+
# should_not ==
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for list_packages
|
124
|
+
#
|
125
|
+
# Get package list of specified project.
|
126
|
+
# @param id_or_name numeric project id or project name
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @return [Array<Package>]
|
129
|
+
describe 'list_packages test' do
|
130
|
+
it "should work" do
|
131
|
+
# assertion here
|
132
|
+
# should be_a()
|
133
|
+
# should be_nil
|
134
|
+
# should ==
|
135
|
+
# should_not ==
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# unit tests for create_package
|
140
|
+
#
|
141
|
+
# Create a package.
|
142
|
+
# @param id_or_name numeric project id or project name
|
143
|
+
# @param name package name
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
146
|
+
# @return [Package]
|
147
|
+
describe 'create_package test' do
|
148
|
+
it "should work" do
|
149
|
+
# assertion here
|
150
|
+
# should be_a()
|
151
|
+
# should be_nil
|
152
|
+
# should ==
|
153
|
+
# should_not ==
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# unit tests for get_package
|
158
|
+
#
|
159
|
+
# Get specified package info and release list of the package.
|
160
|
+
# @param id_or_name numeric project id or project name
|
161
|
+
# @param package_id
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @return [Package]
|
164
|
+
describe 'get_package test' do
|
165
|
+
it "should work" do
|
166
|
+
# assertion here
|
167
|
+
# should be_a()
|
168
|
+
# should be_nil
|
169
|
+
# should ==
|
170
|
+
# should_not ==
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# unit tests for create_release
|
175
|
+
#
|
176
|
+
# Create new release in specified package.
|
177
|
+
# @param id_or_name numeric project id or project name
|
178
|
+
# @param package_id
|
179
|
+
# @param name Release name
|
180
|
+
# @param [Hash] opts the optional parameters
|
181
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
182
|
+
# @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
|
183
|
+
# @option opts [String] :release_note Release note body text.
|
184
|
+
# @option opts [String] :change_log Changelog body text.
|
185
|
+
# @return [Release]
|
186
|
+
describe 'create_release test' do
|
187
|
+
it "should work" do
|
188
|
+
# assertion here
|
189
|
+
# should be_a()
|
190
|
+
# should be_nil
|
191
|
+
# should ==
|
192
|
+
# should_not ==
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# unit tests for delete_package
|
197
|
+
#
|
198
|
+
# Delete taret package.
|
199
|
+
# @param id_or_name numeric project id or project name
|
200
|
+
# @param package_id
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @return [nil]
|
203
|
+
describe 'delete_package test' do
|
204
|
+
it "should work" do
|
205
|
+
# assertion here
|
206
|
+
# should be_a()
|
207
|
+
# should be_nil
|
208
|
+
# should ==
|
209
|
+
# should_not ==
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# unit tests for update_package
|
214
|
+
#
|
215
|
+
# Update tagret package.
|
216
|
+
# @param id_or_name numeric project id or project name
|
217
|
+
# @param package_id
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @option opts [String] :name package name
|
220
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
221
|
+
# @return [Package]
|
222
|
+
describe 'update_package test' do
|
223
|
+
it "should work" do
|
224
|
+
# assertion here
|
225
|
+
# should be_a()
|
226
|
+
# should be_nil
|
227
|
+
# should ==
|
228
|
+
# should_not ==
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# unit tests for draft_release
|
233
|
+
#
|
234
|
+
# Get release draft in specified package. If draft is not exist, it will be created automatically.
|
235
|
+
# @param id_or_name numeric project id or project name
|
236
|
+
# @param package_id
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @return [Release]
|
239
|
+
describe 'draft_release test' do
|
240
|
+
it "should work" do
|
241
|
+
# assertion here
|
242
|
+
# should be_a()
|
243
|
+
# should be_nil
|
244
|
+
# should ==
|
245
|
+
# should_not ==
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# unit tests for get_release
|
250
|
+
#
|
251
|
+
# Get specified release info and file list of the release.
|
252
|
+
# @param id_or_name numeric project id or project name
|
253
|
+
# @param package_id
|
254
|
+
# @param release_id
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @return [Release]
|
257
|
+
describe 'get_release test' do
|
258
|
+
it "should work" do
|
259
|
+
# assertion here
|
260
|
+
# should be_a()
|
261
|
+
# should be_nil
|
262
|
+
# should ==
|
263
|
+
# should_not ==
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
# unit tests for create_release_file
|
268
|
+
#
|
269
|
+
# Create new file in target release.
|
270
|
+
# @param id_or_name numeric project id or project name
|
271
|
+
# @param package_id
|
272
|
+
# @param release_id
|
273
|
+
# @param file Upload file in \"multipart/form-data\".
|
274
|
+
# @param [Hash] opts the optional parameters
|
275
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
276
|
+
# @return [RelFile]
|
277
|
+
describe 'create_release_file test' do
|
278
|
+
it "should work" do
|
279
|
+
# assertion here
|
280
|
+
# should be_a()
|
281
|
+
# should be_nil
|
282
|
+
# should ==
|
283
|
+
# should_not ==
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# unit tests for delete_release
|
288
|
+
#
|
289
|
+
# Delete target release.
|
290
|
+
# @param id_or_name numeric project id or project name
|
291
|
+
# @param package_id
|
292
|
+
# @param release_id
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @return [nil]
|
295
|
+
describe 'delete_release test' do
|
296
|
+
it "should work" do
|
297
|
+
# assertion here
|
298
|
+
# should be_a()
|
299
|
+
# should be_nil
|
300
|
+
# should ==
|
301
|
+
# should_not ==
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# unit tests for update_release
|
306
|
+
#
|
307
|
+
# Update target release.\n(Note: If you update draft release, the release will be public automatically.)
|
308
|
+
# @param id_or_name numeric project id or project name
|
309
|
+
# @param package_id
|
310
|
+
# @param release_id
|
311
|
+
# @param [Hash] opts the optional parameters
|
312
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
313
|
+
# @option opts [String] :name Release name
|
314
|
+
# @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
|
315
|
+
# @option opts [Integer] :move_to_package_id If this parameter is specified, the release move to another package.
|
316
|
+
# @return [Release]
|
317
|
+
describe 'update_release test' do
|
318
|
+
it "should work" do
|
319
|
+
# assertion here
|
320
|
+
# should be_a()
|
321
|
+
# should be_nil
|
322
|
+
# should ==
|
323
|
+
# should_not ==
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# unit tests for get_release_file
|
328
|
+
#
|
329
|
+
# Get single file object.
|
330
|
+
# @param id_or_name numeric project id or project name
|
331
|
+
# @param package_id
|
332
|
+
# @param release_id
|
333
|
+
# @param file_id
|
334
|
+
# @param [Hash] opts the optional parameters
|
335
|
+
# @return [RelFile]
|
336
|
+
describe 'get_release_file test' do
|
337
|
+
it "should work" do
|
338
|
+
# assertion here
|
339
|
+
# should be_a()
|
340
|
+
# should be_nil
|
341
|
+
# should ==
|
342
|
+
# should_not ==
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
# unit tests for delete_release_file
|
347
|
+
#
|
348
|
+
# Delete target file.
|
349
|
+
# @param id_or_name numeric project id or project name
|
350
|
+
# @param package_id
|
351
|
+
# @param release_id
|
352
|
+
# @param file_id
|
353
|
+
# @param [Hash] opts the optional parameters
|
354
|
+
# @return [nil]
|
355
|
+
describe 'delete_release_file test' do
|
356
|
+
it "should work" do
|
357
|
+
# assertion here
|
358
|
+
# should be_a()
|
359
|
+
# should be_nil
|
360
|
+
# should ==
|
361
|
+
# should_not ==
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# unit tests for update_release_file
|
366
|
+
#
|
367
|
+
# Change visibility of target file.
|
368
|
+
# @param id_or_name numeric project id or project name
|
369
|
+
# @param package_id
|
370
|
+
# @param release_id
|
371
|
+
# @param file_id
|
372
|
+
# @param [Hash] opts the optional parameters
|
373
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
374
|
+
# @return [RelFile]
|
375
|
+
describe 'update_release_file test' do
|
376
|
+
it "should work" do
|
377
|
+
# assertion here
|
378
|
+
# should be_a()
|
379
|
+
# should be_nil
|
380
|
+
# should ==
|
381
|
+
# should_not ==
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
# unit tests for list_news_0
|
386
|
+
#
|
387
|
+
# Get news list of spscified project.
|
388
|
+
# @param id_or_name numeric project id or project name
|
389
|
+
# @param [Hash] opts the optional parameters
|
390
|
+
# @return [Array<News>]
|
391
|
+
describe 'list_news_0 test' do
|
392
|
+
it "should work" do
|
393
|
+
# assertion here
|
394
|
+
# should be_a()
|
395
|
+
# should be_nil
|
396
|
+
# should ==
|
397
|
+
# should_not ==
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
401
|
+
# unit tests for create_news_0
|
402
|
+
#
|
403
|
+
#
|
404
|
+
# @param id_or_name numeric project id or project name
|
405
|
+
# @param title news title
|
406
|
+
# @param body news body in OSDN Wiki format.
|
407
|
+
# @param [Hash] opts the optional parameters
|
408
|
+
# @return [String]
|
409
|
+
describe 'create_news_0 test' do
|
410
|
+
it "should work" do
|
411
|
+
# assertion here
|
412
|
+
# should be_a()
|
413
|
+
# should be_nil
|
414
|
+
# should ==
|
415
|
+
# should_not ==
|
416
|
+
end
|
417
|
+
end
|
418
|
+
|
419
|
+
# unit tests for get_news_0
|
420
|
+
#
|
421
|
+
# Get single news object.
|
422
|
+
# @param id_or_name numeric project id or project name
|
423
|
+
# @param news_id
|
424
|
+
# @param [Hash] opts the optional parameters
|
425
|
+
# @return [News]
|
426
|
+
describe 'get_news_0 test' do
|
427
|
+
it "should work" do
|
428
|
+
# assertion here
|
429
|
+
# should be_a()
|
430
|
+
# should be_nil
|
431
|
+
# should ==
|
432
|
+
# should_not ==
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
# unit tests for delete_news_0
|
437
|
+
#
|
438
|
+
#
|
439
|
+
# @param id_or_name numeric project id or project name
|
440
|
+
# @param news_id
|
441
|
+
# @param [Hash] opts the optional parameters
|
442
|
+
# @return [nil]
|
443
|
+
describe 'delete_news_0 test' do
|
444
|
+
it "should work" do
|
445
|
+
# assertion here
|
446
|
+
# should be_a()
|
447
|
+
# should be_nil
|
448
|
+
# should ==
|
449
|
+
# should_not ==
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
453
|
+
# unit tests for update_news_0
|
454
|
+
#
|
455
|
+
#
|
456
|
+
# @param news_id
|
457
|
+
# @param id_or_name numeric project id or project name
|
458
|
+
# @param [Hash] opts the optional parameters
|
459
|
+
# @option opts [String] :title news title
|
460
|
+
# @option opts [String] :body news body in OSDN Wiki format.
|
461
|
+
# @return [News]
|
462
|
+
describe 'update_news_0 test' do
|
463
|
+
it "should work" do
|
464
|
+
# assertion here
|
465
|
+
# should be_a()
|
466
|
+
# should be_nil
|
467
|
+
# should ==
|
468
|
+
# should_not ==
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
end
|