osdn-client 0.0.20160304 → 0.0.20160711
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.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +182 -0
- data/docs/DefaultApi.md +115 -0
- data/docs/Group.md +23 -0
- data/docs/GroupToolFlags.md +17 -0
- data/docs/News.md +14 -0
- data/docs/Package.md +13 -0
- data/docs/Pong.md +11 -0
- data/docs/ProjectApi.md +1511 -0
- data/docs/ProjectFrsApi.md +888 -0
- data/docs/ProjectNewsApi.md +576 -0
- data/docs/RelFile.md +19 -0
- data/docs/Release.md +16 -0
- data/docs/SimpleChamber.md +11 -0
- data/docs/SimpleGroup.md +11 -0
- data/docs/SimpleUser.md +10 -0
- data/docs/Skill.md +11 -0
- data/docs/Token.md +12 -0
- data/docs/User.md +20 -0
- data/docs/UserApi.md +63 -0
- data/lib/osdn-client.rb +32 -9
- data/lib/osdn-client/api/default_api.rb +50 -39
- data/lib/osdn-client/api/project_api.rb +661 -773
- data/lib/osdn-client/api/project_frs_api.rb +350 -412
- data/lib/osdn-client/api/project_news_api.rb +217 -244
- data/lib/osdn-client/api/user_api.rb +35 -20
- data/lib/osdn-client/api_client.rb +74 -13
- data/lib/osdn-client/api_error.rb +23 -0
- data/lib/osdn-client/configuration.rb +45 -1
- data/lib/osdn-client/models/group.rb +103 -65
- data/lib/osdn-client/models/group_tool_flags.rb +91 -47
- data/lib/osdn-client/models/news.rb +85 -38
- data/lib/osdn-client/models/package.rb +83 -35
- data/lib/osdn-client/models/pong.rb +79 -29
- data/lib/osdn-client/models/rel_file.rb +95 -53
- data/lib/osdn-client/models/release.rb +89 -44
- data/lib/osdn-client/models/simple_chamber.rb +79 -29
- data/lib/osdn-client/models/simple_group.rb +79 -29
- data/lib/osdn-client/models/simple_user.rb +77 -26
- data/lib/osdn-client/models/skill.rb +79 -29
- data/lib/osdn-client/models/token.rb +81 -32
- data/lib/osdn-client/models/user.rb +97 -56
- data/lib/osdn-client/version.rb +24 -1
- data/osdn-client.gemspec +30 -7
- data/spec/api/default_api_spec.rb +73 -0
- data/spec/api/{ProjectApi_spec.rb → project_api_spec.rb} +187 -264
- data/spec/api/{ProjectFrsApi_spec.rb → project_frs_api_spec.rb} +103 -136
- data/spec/api/{ProjectNewsApi_spec.rb → project_news_api_spec.rb} +71 -88
- data/spec/api/user_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +315 -0
- data/spec/configuration_spec.rb +48 -0
- data/spec/models/group_spec.rb +143 -0
- data/spec/models/group_tool_flags_spec.rb +107 -0
- data/spec/models/news_spec.rb +89 -0
- data/spec/models/package_spec.rb +83 -0
- data/spec/models/pong_spec.rb +71 -0
- data/spec/models/rel_file_spec.rb +119 -0
- data/spec/models/release_spec.rb +101 -0
- data/spec/models/simple_chamber_spec.rb +71 -0
- data/spec/models/simple_group_spec.rb +71 -0
- data/spec/models/simple_user_spec.rb +65 -0
- data/spec/models/skill_spec.rb +71 -0
- data/spec/models/token_spec.rb +77 -0
- data/spec/models/user_spec.rb +125 -0
- data/spec/spec_helper.rb +122 -0
- metadata +87 -59
- data/spec/api/DefaultApi_spec.rb +0 -58
- data/spec/api/UserApi_spec.rb +0 -39
- data/spec/models/GroupToolFlags_spec.rb +0 -124
- data/spec/models/Group_spec.rb +0 -184
- data/spec/models/News_spec.rb +0 -94
- data/spec/models/Package_spec.rb +0 -84
- data/spec/models/Pong_spec.rb +0 -64
- data/spec/models/RelFile_spec.rb +0 -144
- data/spec/models/Release_spec.rb +0 -114
- data/spec/models/SimpleChamber_spec.rb +0 -64
- data/spec/models/SimpleGroup_spec.rb +0 -64
- data/spec/models/SimpleUser_spec.rb +0 -54
- data/spec/models/Skill_spec.rb +0 -64
- data/spec/models/Token_spec.rb +0 -74
- data/spec/models/User_spec.rb +0 -154
@@ -1,3 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#OSDN REST API v0 beta
|
3
|
+
|
4
|
+
#OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.jp/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.jp/projects/osdn-codes/releases/p14859 .
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.20160304
|
7
|
+
Contact: admin@osdn.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
1
24
|
require 'spec_helper'
|
2
25
|
require 'json'
|
3
26
|
|
@@ -16,23 +39,7 @@ describe 'ProjectFrsApi' do
|
|
16
39
|
|
17
40
|
describe 'test an instance of ProjectFrsApi' do
|
18
41
|
it 'should create an instact of ProjectFrsApi' do
|
19
|
-
@instance.
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# unit tests for list_packages
|
24
|
-
#
|
25
|
-
# Get package list of specified project.
|
26
|
-
# @param id_or_name numeric project id or project name
|
27
|
-
# @param [Hash] opts the optional parameters
|
28
|
-
# @return [Array<Package>]
|
29
|
-
describe 'list_packages test' do
|
30
|
-
it "should work" do
|
31
|
-
# assertion here
|
32
|
-
# should be_a()
|
33
|
-
# should be_nil
|
34
|
-
# should ==
|
35
|
-
# should_not ==
|
42
|
+
expect(@instance).to be_instance_of(OSDNClient::ProjectFrsApi)
|
36
43
|
end
|
37
44
|
end
|
38
45
|
|
@@ -46,28 +53,7 @@ describe 'ProjectFrsApi' do
|
|
46
53
|
# @return [Package]
|
47
54
|
describe 'create_package test' do
|
48
55
|
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_package
|
58
|
-
#
|
59
|
-
# Get specified package info and release list of the package.
|
60
|
-
# @param id_or_name numeric project id or project name
|
61
|
-
# @param package_id
|
62
|
-
# @param [Hash] opts the optional parameters
|
63
|
-
# @return [Package]
|
64
|
-
describe 'get_package test' do
|
65
|
-
it "should work" do
|
66
|
-
# assertion here
|
67
|
-
# should be_a()
|
68
|
-
# should be_nil
|
69
|
-
# should ==
|
70
|
-
# should_not ==
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
57
|
end
|
72
58
|
end
|
73
59
|
|
@@ -85,142 +71,105 @@ describe 'ProjectFrsApi' do
|
|
85
71
|
# @return [Release]
|
86
72
|
describe 'create_release test' do
|
87
73
|
it "should work" do
|
88
|
-
# assertion here
|
89
|
-
# should be_a()
|
90
|
-
# should be_nil
|
91
|
-
# should ==
|
92
|
-
# should_not ==
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
75
|
end
|
94
76
|
end
|
95
77
|
|
96
|
-
# unit tests for
|
78
|
+
# unit tests for create_release_file
|
97
79
|
#
|
98
|
-
#
|
80
|
+
# Create new file in target release.
|
99
81
|
# @param id_or_name numeric project id or project name
|
100
82
|
# @param package_id
|
83
|
+
# @param release_id
|
84
|
+
# @param file Upload file in \"multipart/form-data\".
|
101
85
|
# @param [Hash] opts the optional parameters
|
102
|
-
# @
|
103
|
-
|
86
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
87
|
+
# @return [RelFile]
|
88
|
+
describe 'create_release_file test' do
|
104
89
|
it "should work" do
|
105
|
-
# assertion here
|
106
|
-
# should be_a()
|
107
|
-
# should be_nil
|
108
|
-
# should ==
|
109
|
-
# should_not ==
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
91
|
end
|
111
92
|
end
|
112
93
|
|
113
|
-
# unit tests for
|
94
|
+
# unit tests for delete_package
|
114
95
|
#
|
115
|
-
#
|
96
|
+
# Delete taret package.
|
116
97
|
# @param id_or_name numeric project id or project name
|
117
98
|
# @param package_id
|
118
99
|
# @param [Hash] opts the optional parameters
|
119
|
-
# @
|
120
|
-
|
121
|
-
# @return [Package]
|
122
|
-
describe 'update_package test' do
|
100
|
+
# @return [nil]
|
101
|
+
describe 'delete_package test' do
|
123
102
|
it "should work" do
|
124
|
-
# assertion here
|
125
|
-
# should be_a()
|
126
|
-
# should be_nil
|
127
|
-
# should ==
|
128
|
-
# should_not ==
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
104
|
end
|
130
105
|
end
|
131
106
|
|
132
|
-
# unit tests for
|
107
|
+
# unit tests for delete_release
|
133
108
|
#
|
134
|
-
#
|
109
|
+
# Delete target release.
|
135
110
|
# @param id_or_name numeric project id or project name
|
136
111
|
# @param package_id
|
112
|
+
# @param release_id
|
137
113
|
# @param [Hash] opts the optional parameters
|
138
|
-
# @return [
|
139
|
-
describe '
|
114
|
+
# @return [nil]
|
115
|
+
describe 'delete_release test' do
|
140
116
|
it "should work" do
|
141
|
-
# assertion here
|
142
|
-
# should be_a()
|
143
|
-
# should be_nil
|
144
|
-
# should ==
|
145
|
-
# should_not ==
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
118
|
end
|
147
119
|
end
|
148
120
|
|
149
|
-
# unit tests for
|
121
|
+
# unit tests for delete_release_file
|
150
122
|
#
|
151
|
-
#
|
123
|
+
# Delete target file.
|
152
124
|
# @param id_or_name numeric project id or project name
|
153
125
|
# @param package_id
|
154
126
|
# @param release_id
|
127
|
+
# @param file_id
|
155
128
|
# @param [Hash] opts the optional parameters
|
156
|
-
# @return [
|
157
|
-
describe '
|
129
|
+
# @return [nil]
|
130
|
+
describe 'delete_release_file test' do
|
158
131
|
it "should work" do
|
159
|
-
# assertion here
|
160
|
-
# should be_a()
|
161
|
-
# should be_nil
|
162
|
-
# should ==
|
163
|
-
# should_not ==
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
133
|
end
|
165
134
|
end
|
166
135
|
|
167
|
-
# unit tests for
|
136
|
+
# unit tests for draft_release
|
168
137
|
#
|
169
|
-
#
|
138
|
+
# Get release draft in specified package. If draft is not exist, it will be created automatically.
|
170
139
|
# @param id_or_name numeric project id or project name
|
171
140
|
# @param package_id
|
172
|
-
# @param release_id
|
173
|
-
# @param file Upload file in \"multipart/form-data\".
|
174
141
|
# @param [Hash] opts the optional parameters
|
175
|
-
# @
|
176
|
-
|
177
|
-
describe 'create_release_file test' do
|
142
|
+
# @return [Release]
|
143
|
+
describe 'draft_release test' do
|
178
144
|
it "should work" do
|
179
|
-
# assertion here
|
180
|
-
# should be_a()
|
181
|
-
# should be_nil
|
182
|
-
# should ==
|
183
|
-
# should_not ==
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
184
146
|
end
|
185
147
|
end
|
186
148
|
|
187
|
-
# unit tests for
|
149
|
+
# unit tests for get_package
|
188
150
|
#
|
189
|
-
#
|
151
|
+
# Get specified package info and release list of the package.
|
190
152
|
# @param id_or_name numeric project id or project name
|
191
153
|
# @param package_id
|
192
|
-
# @param release_id
|
193
154
|
# @param [Hash] opts the optional parameters
|
194
|
-
# @return [
|
195
|
-
describe '
|
155
|
+
# @return [Package]
|
156
|
+
describe 'get_package test' do
|
196
157
|
it "should work" do
|
197
|
-
# assertion here
|
198
|
-
# should be_a()
|
199
|
-
# should be_nil
|
200
|
-
# should ==
|
201
|
-
# should_not ==
|
158
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
202
159
|
end
|
203
160
|
end
|
204
161
|
|
205
|
-
# unit tests for
|
162
|
+
# unit tests for get_release
|
206
163
|
#
|
207
|
-
#
|
164
|
+
# Get specified release info and file list of the release.
|
208
165
|
# @param id_or_name numeric project id or project name
|
209
166
|
# @param package_id
|
210
167
|
# @param release_id
|
211
168
|
# @param [Hash] opts the optional parameters
|
212
|
-
# @option opts [String] :visibility visibility status (public, hidden or private)
|
213
|
-
# @option opts [String] :name Release name
|
214
|
-
# @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
|
215
|
-
# @option opts [Integer] :move_to_package_id If this parameter is specified, the release move to another package.
|
216
169
|
# @return [Release]
|
217
|
-
describe '
|
170
|
+
describe 'get_release test' do
|
218
171
|
it "should work" do
|
219
|
-
# assertion here
|
220
|
-
# should be_a()
|
221
|
-
# should be_nil
|
222
|
-
# should ==
|
223
|
-
# should_not ==
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
224
173
|
end
|
225
174
|
end
|
226
175
|
|
@@ -235,30 +184,52 @@ describe 'ProjectFrsApi' do
|
|
235
184
|
# @return [RelFile]
|
236
185
|
describe 'get_release_file test' do
|
237
186
|
it "should work" do
|
238
|
-
# assertion here
|
239
|
-
# should be_a()
|
240
|
-
# should be_nil
|
241
|
-
# should ==
|
242
|
-
# should_not ==
|
187
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
243
188
|
end
|
244
189
|
end
|
245
190
|
|
246
|
-
# unit tests for
|
191
|
+
# unit tests for list_packages
|
247
192
|
#
|
248
|
-
#
|
193
|
+
# Get package list of specified project.
|
194
|
+
# @param id_or_name numeric project id or project name
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @return [Array<Package>]
|
197
|
+
describe 'list_packages test' do
|
198
|
+
it "should work" do
|
199
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# unit tests for update_package
|
204
|
+
#
|
205
|
+
# Update tagret package.
|
206
|
+
# @param id_or_name numeric project id or project name
|
207
|
+
# @param package_id
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @option opts [String] :name package name
|
210
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
211
|
+
# @return [Package]
|
212
|
+
describe 'update_package test' do
|
213
|
+
it "should work" do
|
214
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# unit tests for update_release
|
219
|
+
#
|
220
|
+
# Update target release. (Note: If you update draft release, the release will be public automatically.)
|
249
221
|
# @param id_or_name numeric project id or project name
|
250
222
|
# @param package_id
|
251
223
|
# @param release_id
|
252
|
-
# @param file_id
|
253
224
|
# @param [Hash] opts the optional parameters
|
254
|
-
# @
|
255
|
-
|
225
|
+
# @option opts [String] :visibility visibility status (public, hidden or private)
|
226
|
+
# @option opts [String] :name Release name
|
227
|
+
# @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
|
228
|
+
# @option opts [Integer] :move_to_package_id If this parameter is specified, the release move to another package.
|
229
|
+
# @return [Release]
|
230
|
+
describe 'update_release test' do
|
256
231
|
it "should work" do
|
257
|
-
# assertion here
|
258
|
-
# should be_a()
|
259
|
-
# should be_nil
|
260
|
-
# should ==
|
261
|
-
# should_not ==
|
232
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
262
233
|
end
|
263
234
|
end
|
264
235
|
|
@@ -274,11 +245,7 @@ describe 'ProjectFrsApi' do
|
|
274
245
|
# @return [RelFile]
|
275
246
|
describe 'update_release_file test' do
|
276
247
|
it "should work" do
|
277
|
-
# assertion here
|
278
|
-
# should be_a()
|
279
|
-
# should be_nil
|
280
|
-
# should ==
|
281
|
-
# should_not ==
|
248
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
282
249
|
end
|
283
250
|
end
|
284
251
|
|
@@ -1,3 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#OSDN REST API v0 beta
|
3
|
+
|
4
|
+
#OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.jp/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.jp/projects/osdn-codes/releases/p14859 .
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.20160304
|
7
|
+
Contact: admin@osdn.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
1
24
|
require 'spec_helper'
|
2
25
|
require 'json'
|
3
26
|
|
@@ -16,159 +39,123 @@ describe 'ProjectNewsApi' do
|
|
16
39
|
|
17
40
|
describe 'test an instance of ProjectNewsApi' do
|
18
41
|
it 'should create an instact of ProjectNewsApi' do
|
19
|
-
@instance.
|
42
|
+
expect(@instance).to be_instance_of(OSDNClient::ProjectNewsApi)
|
20
43
|
end
|
21
44
|
end
|
22
45
|
|
23
|
-
# unit tests for
|
46
|
+
# unit tests for create_news
|
24
47
|
#
|
25
48
|
#
|
49
|
+
# @param title news title
|
50
|
+
# @param body news body in OSDN Wiki format.
|
51
|
+
# @param group_id group_id the news created in
|
26
52
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @
|
28
|
-
|
29
|
-
describe 'list_news test' do
|
53
|
+
# @return [String]
|
54
|
+
describe 'create_news test' do
|
30
55
|
it "should work" do
|
31
|
-
# assertion here
|
32
|
-
# should be_a()
|
33
|
-
# should be_nil
|
34
|
-
# should ==
|
35
|
-
# should_not ==
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
36
57
|
end
|
37
58
|
end
|
38
59
|
|
39
|
-
# unit tests for
|
60
|
+
# unit tests for create_news_0
|
40
61
|
#
|
41
62
|
#
|
63
|
+
# @param id_or_name numeric project id or project name
|
42
64
|
# @param title news title
|
43
65
|
# @param body news body in OSDN Wiki format.
|
44
|
-
# @param group_id group_id the news created in
|
45
66
|
# @param [Hash] opts the optional parameters
|
46
67
|
# @return [String]
|
47
|
-
describe '
|
68
|
+
describe 'create_news_0 test' do
|
48
69
|
it "should work" do
|
49
|
-
# assertion here
|
50
|
-
# should be_a()
|
51
|
-
# should be_nil
|
52
|
-
# should ==
|
53
|
-
# should_not ==
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
71
|
end
|
55
72
|
end
|
56
73
|
|
57
|
-
# unit tests for
|
74
|
+
# unit tests for delete_news
|
75
|
+
#
|
58
76
|
#
|
59
|
-
# Get single news object.
|
60
77
|
# @param news_id
|
61
78
|
# @param [Hash] opts the optional parameters
|
62
|
-
# @return [
|
63
|
-
describe '
|
79
|
+
# @return [nil]
|
80
|
+
describe 'delete_news test' do
|
64
81
|
it "should work" do
|
65
|
-
# assertion here
|
66
|
-
# should be_a()
|
67
|
-
# should be_nil
|
68
|
-
# should ==
|
69
|
-
# should_not ==
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
83
|
end
|
71
84
|
end
|
72
85
|
|
73
|
-
# unit tests for
|
86
|
+
# unit tests for delete_news_0
|
74
87
|
#
|
75
88
|
#
|
89
|
+
# @param id_or_name numeric project id or project name
|
76
90
|
# @param news_id
|
77
91
|
# @param [Hash] opts the optional parameters
|
78
92
|
# @return [nil]
|
79
|
-
describe '
|
93
|
+
describe 'delete_news_0 test' do
|
80
94
|
it "should work" do
|
81
|
-
# assertion here
|
82
|
-
# should be_a()
|
83
|
-
# should be_nil
|
84
|
-
# should ==
|
85
|
-
# should_not ==
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
96
|
end
|
87
97
|
end
|
88
98
|
|
89
|
-
# unit tests for
|
90
|
-
#
|
99
|
+
# unit tests for get_news
|
91
100
|
#
|
101
|
+
# Get single news object.
|
92
102
|
# @param news_id
|
93
103
|
# @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
104
|
# @return [News]
|
97
|
-
describe '
|
105
|
+
describe 'get_news test' do
|
98
106
|
it "should work" do
|
99
|
-
# assertion here
|
100
|
-
# should be_a()
|
101
|
-
# should be_nil
|
102
|
-
# should ==
|
103
|
-
# should_not ==
|
107
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
108
|
end
|
105
109
|
end
|
106
110
|
|
107
|
-
# unit tests for
|
111
|
+
# unit tests for get_news_0
|
108
112
|
#
|
109
|
-
# Get news
|
113
|
+
# Get single news object.
|
110
114
|
# @param id_or_name numeric project id or project name
|
115
|
+
# @param news_id
|
111
116
|
# @param [Hash] opts the optional parameters
|
112
|
-
# @return [
|
113
|
-
describe '
|
117
|
+
# @return [News]
|
118
|
+
describe 'get_news_0 test' do
|
114
119
|
it "should work" do
|
115
|
-
# assertion here
|
116
|
-
# should be_a()
|
117
|
-
# should be_nil
|
118
|
-
# should ==
|
119
|
-
# should_not ==
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
121
|
end
|
121
122
|
end
|
122
123
|
|
123
|
-
# unit tests for
|
124
|
+
# unit tests for list_news
|
124
125
|
#
|
125
126
|
#
|
126
|
-
# @param id_or_name numeric project id or project name
|
127
|
-
# @param title news title
|
128
|
-
# @param body news body in OSDN Wiki format.
|
129
127
|
# @param [Hash] opts the optional parameters
|
130
|
-
# @
|
131
|
-
|
128
|
+
# @option opts [Integer] :group_id filter by group ID
|
129
|
+
# @return [Array<News>]
|
130
|
+
describe 'list_news test' do
|
132
131
|
it "should work" do
|
133
|
-
# assertion here
|
134
|
-
# should be_a()
|
135
|
-
# should be_nil
|
136
|
-
# should ==
|
137
|
-
# should_not ==
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
138
133
|
end
|
139
134
|
end
|
140
135
|
|
141
|
-
# unit tests for
|
136
|
+
# unit tests for list_news_0
|
142
137
|
#
|
143
|
-
# Get
|
138
|
+
# Get news list of spscified project.
|
144
139
|
# @param id_or_name numeric project id or project name
|
145
|
-
# @param news_id
|
146
140
|
# @param [Hash] opts the optional parameters
|
147
|
-
# @return [News]
|
148
|
-
describe '
|
141
|
+
# @return [Array<News>]
|
142
|
+
describe 'list_news_0 test' do
|
149
143
|
it "should work" do
|
150
|
-
# assertion here
|
151
|
-
# should be_a()
|
152
|
-
# should be_nil
|
153
|
-
# should ==
|
154
|
-
# should_not ==
|
144
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
155
145
|
end
|
156
146
|
end
|
157
147
|
|
158
|
-
# unit tests for
|
148
|
+
# unit tests for update_news
|
159
149
|
#
|
160
150
|
#
|
161
|
-
# @param id_or_name numeric project id or project name
|
162
151
|
# @param news_id
|
163
152
|
# @param [Hash] opts the optional parameters
|
164
|
-
# @
|
165
|
-
|
153
|
+
# @option opts [String] :title news title
|
154
|
+
# @option opts [String] :body news body in OSDN Wiki format.
|
155
|
+
# @return [News]
|
156
|
+
describe 'update_news test' do
|
166
157
|
it "should work" do
|
167
|
-
# assertion here
|
168
|
-
# should be_a()
|
169
|
-
# should be_nil
|
170
|
-
# should ==
|
171
|
-
# should_not ==
|
158
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
172
159
|
end
|
173
160
|
end
|
174
161
|
|
@@ -183,11 +170,7 @@ describe 'ProjectNewsApi' do
|
|
183
170
|
# @return [News]
|
184
171
|
describe 'update_news_0 test' do
|
185
172
|
it "should work" do
|
186
|
-
# assertion here
|
187
|
-
# should be_a()
|
188
|
-
# should be_nil
|
189
|
-
# should ==
|
190
|
-
# should_not ==
|
173
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
191
174
|
end
|
192
175
|
end
|
193
176
|
|