zendesk_api 0.1.11 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.travis.yml +1 -3
- data/Gemfile +24 -0
- data/Gemfile.lock +75 -10
- data/Procfile +1 -0
- data/Rakefile +10 -3
- data/Readme.md +65 -0
- data/bin/zendesk +26 -0
- data/config.ru +6 -0
- data/config/mongoid.yml +81 -0
- data/lib/zendesk_api/actions.rb +2 -2
- data/lib/zendesk_api/collection.rb +15 -4
- data/lib/zendesk_api/console/base.rb +12 -0
- data/lib/zendesk_api/console/console.rb +144 -0
- data/lib/zendesk_api/console/extensions.rb +183 -0
- data/lib/zendesk_api/console/options.rb +41 -0
- data/lib/zendesk_api/resource.rb +12 -1
- data/lib/zendesk_api/resources.rb +28 -8
- data/lib/zendesk_api/server/base.rb +119 -0
- data/lib/zendesk_api/server/docs/account_settings.md +145 -0
- data/lib/zendesk_api/server/docs/activity_stream.md +121 -0
- data/lib/zendesk_api/server/docs/attachments.md +73 -0
- data/lib/zendesk_api/server/docs/autocomplete.md +29 -0
- data/lib/zendesk_api/server/docs/categories.md +193 -0
- data/lib/zendesk_api/server/docs/custom_roles.md +88 -0
- data/lib/zendesk_api/server/docs/forum_subscriptions.md +139 -0
- data/lib/zendesk_api/server/docs/forums.md +229 -0
- data/lib/zendesk_api/server/docs/group_memberships.md +229 -0
- data/lib/zendesk_api/server/docs/groups.md +212 -0
- data/lib/zendesk_api/server/docs/introduction.md +159 -0
- data/lib/zendesk_api/server/docs/job_statuses.md +86 -0
- data/lib/zendesk_api/server/docs/locales.md +124 -0
- data/lib/zendesk_api/server/docs/macros.md +287 -0
- data/lib/zendesk_api/server/docs/organizations.md +253 -0
- data/lib/zendesk_api/server/docs/problems.md +117 -0
- data/lib/zendesk_api/server/docs/requests.md +256 -0
- data/lib/zendesk_api/server/docs/satisfaction_ratings.md +136 -0
- data/lib/zendesk_api/server/docs/search.md +106 -0
- data/lib/zendesk_api/server/docs/sharing_agreements.md +57 -0
- data/lib/zendesk_api/server/docs/side_loading.md +125 -0
- data/lib/zendesk_api/server/docs/suspended_tickets.md +182 -0
- data/lib/zendesk_api/server/docs/tags.md +36 -0
- data/lib/zendesk_api/server/docs/ticket_audits.md +657 -0
- data/lib/zendesk_api/server/docs/ticket_export.md +121 -0
- data/lib/zendesk_api/server/docs/ticket_fields.md +277 -0
- data/lib/zendesk_api/server/docs/ticket_import.md +65 -0
- data/lib/zendesk_api/server/docs/ticket_metrics.md +125 -0
- data/lib/zendesk_api/server/docs/tickets.md +622 -0
- data/lib/zendesk_api/server/docs/topic_comments.md +221 -0
- data/lib/zendesk_api/server/docs/topic_subscriptions.md +140 -0
- data/lib/zendesk_api/server/docs/topic_votes.md +154 -0
- data/lib/zendesk_api/server/docs/topics.md +335 -0
- data/lib/zendesk_api/server/docs/triggers.md +199 -0
- data/lib/zendesk_api/server/docs/user_identities.md +279 -0
- data/lib/zendesk_api/server/docs/users.md +400 -0
- data/lib/zendesk_api/server/docs/views.md +505 -0
- data/lib/zendesk_api/server/helper.rb +104 -0
- data/lib/zendesk_api/server/html_renderer.rb +98 -0
- data/lib/zendesk_api/server/models/user_request.rb +16 -0
- data/lib/zendesk_api/server/models/zlib_json.rb +13 -0
- data/lib/zendesk_api/server/public/config.rb +26 -0
- data/lib/zendesk_api/server/public/favicon.ico +0 -0
- data/lib/zendesk_api/server/public/images/glyphicons-halflings-white.png +0 -0
- data/lib/zendesk_api/server/public/images/glyphicons-halflings.png +0 -0
- data/lib/zendesk_api/server/public/images/spinner.gif +0 -0
- data/lib/zendesk_api/server/public/images/zendesk_developers_bg.png +0 -0
- data/lib/zendesk_api/server/public/images/zendesk_developers_header.png +0 -0
- data/lib/zendesk_api/server/public/javascripts/application.js +186 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-alert.js +90 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-button.js +96 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-carousel.js +169 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-collapse.js +157 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-dropdown.js +100 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-modal.js +218 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-popover.js +98 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-scrollspy.js +151 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-tab.js +135 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-tooltip.js +275 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-transition.js +61 -0
- data/lib/zendesk_api/server/public/javascripts/bootstrap-typeahead.js +285 -0
- data/lib/zendesk_api/server/public/sass/screen.scss +102 -0
- data/lib/zendesk_api/server/public/sass/styles.scss +5 -0
- data/lib/zendesk_api/server/public/stylesheets/developer.screen.css +836 -0
- data/lib/zendesk_api/server/public/stylesheets/screen.css +129 -0
- data/lib/zendesk_api/server/public/stylesheets/styles.css +6208 -0
- data/lib/zendesk_api/server/templates/footer.haml +13 -0
- data/lib/zendesk_api/server/templates/header.haml +20 -0
- data/lib/zendesk_api/server/templates/index.haml +68 -0
- data/lib/zendesk_api/server/templates/layout.haml +44 -0
- data/lib/zendesk_api/server/templates/param.haml +4 -0
- data/lib/zendesk_api/server/templates/search.haml +23 -0
- data/lib/zendesk_api/server/templates/sidebar.haml +7 -0
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/{association_spec.rb → core/association_spec.rb} +1 -1
- data/spec/{client_spec.rb → core/client_spec.rb} +1 -1
- data/spec/{collection_spec.rb → core/collection_spec.rb} +1 -1
- data/spec/{configuration_spec.rb → core/configuration_spec.rb} +1 -1
- data/spec/{create_resource_spec.rb → core/create_resource_spec.rb} +1 -1
- data/spec/{data_resource_spec.rb → core/data_resource_spec.rb} +1 -1
- data/spec/{inflection_spec.rb → core/inflection_spec.rb} +1 -1
- data/spec/{lru_cache_spec.rb → core/lru_cache_spec.rb} +1 -1
- data/spec/{middleware → core/middleware}/request/etag_cache_spec.rb +1 -1
- data/spec/{middleware → core/middleware}/request/retry_spec.rb +1 -1
- data/spec/{middleware → core/middleware}/request/test.jpg +0 -0
- data/spec/{middleware → core/middleware}/request/upload_spec.rb +1 -1
- data/spec/{middleware → core/middleware}/response/callback_spec.rb +1 -1
- data/spec/{middleware → core/middleware}/response/deflate_spec.rb +1 -1
- data/spec/{middleware → core/middleware}/response/gzip_spec.rb +1 -1
- data/spec/{middleware → core/middleware}/response/parse_iso_dates_spec.rb +1 -1
- data/spec/{read_resource_spec.rb → core/read_resource_spec.rb} +1 -1
- data/spec/{rescue_spec.rb → core/rescue_spec.rb} +1 -1
- data/spec/{resource_spec.rb → core/resource_spec.rb} +1 -1
- data/spec/{search_spec.rb → core/search_spec.rb} +1 -1
- data/spec/{spec_helper.rb → core/spec_helper.rb} +5 -5
- data/spec/{trackie_spec.rb → core/trackie_spec.rb} +1 -1
- data/{live → spec/live}/Readme.md +0 -0
- data/{live → spec/live}/activity_spec.rb +1 -1
- data/{live → spec/live}/audit_spec.rb +1 -1
- data/{live → spec/live}/bookmark_spec.rb +1 -1
- data/{live → spec/live}/category_spec.rb +1 -1
- data/{live → spec/live}/collection_spec.rb +1 -1
- data/{live → spec/live}/crm_spec.rb +1 -1
- data/{live → spec/live}/custom_role_spec.rb +1 -1
- data/{live → spec/live}/forum_spec.rb +1 -1
- data/{live → spec/live}/forum_subscription_spec.rb +1 -1
- data/{live → spec/live}/group_membership_spec.rb +1 -1
- data/{live → spec/live}/group_spec.rb +1 -1
- data/{live → spec/live}/identity_spec.rb +1 -1
- data/{live → spec/live}/locale_spec.rb +1 -1
- data/{live → spec/live}/macro_spec.rb +1 -1
- data/{live → spec/live}/mobile_device_spec.rb +1 -1
- data/{live → spec/live}/organization_spec.rb +1 -1
- data/{live → spec/live}/request_spec.rb +1 -1
- data/{live → spec/live}/satisfaction_rating_spec.rb +1 -1
- data/{live → spec/live}/setting_spec.rb +1 -1
- data/{live → spec/live}/suspended_ticket_spec.rb +1 -1
- data/{live → spec/live}/ticket_field_spec.rb +1 -1
- data/{live → spec/live}/ticket_metrics_spec.rb +1 -1
- data/{live → spec/live}/ticket_spec.rb +1 -1
- data/spec/live/topic_comment_spec.rb +24 -0
- data/{live → spec/live}/topic_spec.rb +1 -1
- data/{live → spec/live}/topic_subscription_spec.rb +1 -1
- data/{live → spec/live}/topic_vote_spec.rb +1 -1
- data/{live → spec/live}/upload_spec.rb +1 -1
- data/{live → spec/live}/user_spec.rb +1 -1
- data/{live → spec/live}/view_spec.rb +1 -1
- data/spec/macros/resource_macros.rb +1 -1
- data/spec/server/app_spec.rb +140 -0
- data/spec/server/helper_spec.rb +97 -0
- data/spec/server/html_renderer_spec.rb +130 -0
- data/spec/server/spec_helper.rb +43 -0
- metadata +198 -77
- data/live/topic_comment_spec.rb +0 -13
@@ -0,0 +1,43 @@
|
|
1
|
+
ENV['TZ'] = 'CET' # something that is not local and not utc so we find all the bugs
|
2
|
+
ENV['RACK_ENV'] = 'test'
|
3
|
+
|
4
|
+
require 'zendesk_api'
|
5
|
+
require 'zendesk_api/server/base'
|
6
|
+
|
7
|
+
require 'database_cleaner'
|
8
|
+
require 'rack/test'
|
9
|
+
require 'webmock'
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
module TestHelper
|
13
|
+
def app
|
14
|
+
ZendeskAPI::Server::App
|
15
|
+
end
|
16
|
+
|
17
|
+
def json(body = {})
|
18
|
+
JSON.dump(body)
|
19
|
+
end
|
20
|
+
|
21
|
+
def stub_json_request(verb, path_matcher, body = json, options = {})
|
22
|
+
stub_request(verb, path_matcher).to_return(Hashie::Mash.new(
|
23
|
+
:body => body, :headers => { :content_type => "application/json" }
|
24
|
+
).deep_merge(options))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
RSpec.configure do |c|
|
29
|
+
# Uneccessary in Rspec 3
|
30
|
+
c.treat_symbols_as_metadata_keys_with_true_values = true
|
31
|
+
|
32
|
+
c.before(:each) do
|
33
|
+
WebMock.reset!
|
34
|
+
end
|
35
|
+
|
36
|
+
c.after(:each) do
|
37
|
+
DatabaseCleaner.clean
|
38
|
+
end
|
39
|
+
|
40
|
+
c.include Rack::Test::Methods
|
41
|
+
c.include WebMock::API
|
42
|
+
c.include TestHelper
|
43
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-12-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bump
|
@@ -235,14 +235,22 @@ files:
|
|
235
235
|
- Gemfile
|
236
236
|
- Gemfile.lock
|
237
237
|
- LICENSE
|
238
|
+
- Procfile
|
238
239
|
- Rakefile
|
239
240
|
- Readme.md
|
241
|
+
- bin/zendesk
|
242
|
+
- config.ru
|
243
|
+
- config/mongoid.yml
|
240
244
|
- lib/zendesk_api.rb
|
241
245
|
- lib/zendesk_api/actions.rb
|
242
246
|
- lib/zendesk_api/association.rb
|
243
247
|
- lib/zendesk_api/client.rb
|
244
248
|
- lib/zendesk_api/collection.rb
|
245
249
|
- lib/zendesk_api/configuration.rb
|
250
|
+
- lib/zendesk_api/console/base.rb
|
251
|
+
- lib/zendesk_api/console/console.rb
|
252
|
+
- lib/zendesk_api/console/extensions.rb
|
253
|
+
- lib/zendesk_api/console/options.rb
|
246
254
|
- lib/zendesk_api/core_ext/inflection.rb
|
247
255
|
- lib/zendesk_api/helpers.rb
|
248
256
|
- lib/zendesk_api/lru_cache.rb
|
@@ -257,70 +265,148 @@ files:
|
|
257
265
|
- lib/zendesk_api/rescue.rb
|
258
266
|
- lib/zendesk_api/resource.rb
|
259
267
|
- lib/zendesk_api/resources.rb
|
268
|
+
- lib/zendesk_api/server/base.rb
|
269
|
+
- lib/zendesk_api/server/docs/account_settings.md
|
270
|
+
- lib/zendesk_api/server/docs/activity_stream.md
|
271
|
+
- lib/zendesk_api/server/docs/attachments.md
|
272
|
+
- lib/zendesk_api/server/docs/autocomplete.md
|
273
|
+
- lib/zendesk_api/server/docs/categories.md
|
274
|
+
- lib/zendesk_api/server/docs/custom_roles.md
|
275
|
+
- lib/zendesk_api/server/docs/forum_subscriptions.md
|
276
|
+
- lib/zendesk_api/server/docs/forums.md
|
277
|
+
- lib/zendesk_api/server/docs/group_memberships.md
|
278
|
+
- lib/zendesk_api/server/docs/groups.md
|
279
|
+
- lib/zendesk_api/server/docs/introduction.md
|
280
|
+
- lib/zendesk_api/server/docs/job_statuses.md
|
281
|
+
- lib/zendesk_api/server/docs/locales.md
|
282
|
+
- lib/zendesk_api/server/docs/macros.md
|
283
|
+
- lib/zendesk_api/server/docs/organizations.md
|
284
|
+
- lib/zendesk_api/server/docs/problems.md
|
285
|
+
- lib/zendesk_api/server/docs/requests.md
|
286
|
+
- lib/zendesk_api/server/docs/satisfaction_ratings.md
|
287
|
+
- lib/zendesk_api/server/docs/search.md
|
288
|
+
- lib/zendesk_api/server/docs/sharing_agreements.md
|
289
|
+
- lib/zendesk_api/server/docs/side_loading.md
|
290
|
+
- lib/zendesk_api/server/docs/suspended_tickets.md
|
291
|
+
- lib/zendesk_api/server/docs/tags.md
|
292
|
+
- lib/zendesk_api/server/docs/ticket_audits.md
|
293
|
+
- lib/zendesk_api/server/docs/ticket_export.md
|
294
|
+
- lib/zendesk_api/server/docs/ticket_fields.md
|
295
|
+
- lib/zendesk_api/server/docs/ticket_import.md
|
296
|
+
- lib/zendesk_api/server/docs/ticket_metrics.md
|
297
|
+
- lib/zendesk_api/server/docs/tickets.md
|
298
|
+
- lib/zendesk_api/server/docs/topic_comments.md
|
299
|
+
- lib/zendesk_api/server/docs/topic_subscriptions.md
|
300
|
+
- lib/zendesk_api/server/docs/topic_votes.md
|
301
|
+
- lib/zendesk_api/server/docs/topics.md
|
302
|
+
- lib/zendesk_api/server/docs/triggers.md
|
303
|
+
- lib/zendesk_api/server/docs/user_identities.md
|
304
|
+
- lib/zendesk_api/server/docs/users.md
|
305
|
+
- lib/zendesk_api/server/docs/views.md
|
306
|
+
- lib/zendesk_api/server/helper.rb
|
307
|
+
- lib/zendesk_api/server/html_renderer.rb
|
308
|
+
- lib/zendesk_api/server/models/user_request.rb
|
309
|
+
- lib/zendesk_api/server/models/zlib_json.rb
|
310
|
+
- lib/zendesk_api/server/public/config.rb
|
311
|
+
- lib/zendesk_api/server/public/favicon.ico
|
312
|
+
- lib/zendesk_api/server/public/images/glyphicons-halflings-white.png
|
313
|
+
- lib/zendesk_api/server/public/images/glyphicons-halflings.png
|
314
|
+
- lib/zendesk_api/server/public/images/spinner.gif
|
315
|
+
- lib/zendesk_api/server/public/images/zendesk_developers_bg.png
|
316
|
+
- lib/zendesk_api/server/public/images/zendesk_developers_header.png
|
317
|
+
- lib/zendesk_api/server/public/javascripts/application.js
|
318
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-alert.js
|
319
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-button.js
|
320
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-carousel.js
|
321
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-collapse.js
|
322
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-dropdown.js
|
323
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-modal.js
|
324
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-popover.js
|
325
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-scrollspy.js
|
326
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-tab.js
|
327
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-tooltip.js
|
328
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-transition.js
|
329
|
+
- lib/zendesk_api/server/public/javascripts/bootstrap-typeahead.js
|
330
|
+
- lib/zendesk_api/server/public/sass/screen.scss
|
331
|
+
- lib/zendesk_api/server/public/sass/styles.scss
|
332
|
+
- lib/zendesk_api/server/public/stylesheets/developer.screen.css
|
333
|
+
- lib/zendesk_api/server/public/stylesheets/screen.css
|
334
|
+
- lib/zendesk_api/server/public/stylesheets/styles.css
|
335
|
+
- lib/zendesk_api/server/templates/footer.haml
|
336
|
+
- lib/zendesk_api/server/templates/header.haml
|
337
|
+
- lib/zendesk_api/server/templates/index.haml
|
338
|
+
- lib/zendesk_api/server/templates/layout.haml
|
339
|
+
- lib/zendesk_api/server/templates/param.haml
|
340
|
+
- lib/zendesk_api/server/templates/search.haml
|
341
|
+
- lib/zendesk_api/server/templates/sidebar.haml
|
260
342
|
- lib/zendesk_api/sideloading.rb
|
261
343
|
- lib/zendesk_api/track_changes.rb
|
262
344
|
- lib/zendesk_api/trackie.rb
|
263
345
|
- lib/zendesk_api/verbs.rb
|
264
346
|
- lib/zendesk_api/version.rb
|
265
|
-
-
|
266
|
-
-
|
267
|
-
-
|
268
|
-
-
|
269
|
-
-
|
270
|
-
-
|
271
|
-
-
|
272
|
-
-
|
273
|
-
-
|
274
|
-
-
|
275
|
-
-
|
276
|
-
-
|
277
|
-
-
|
278
|
-
-
|
279
|
-
-
|
280
|
-
-
|
281
|
-
-
|
282
|
-
-
|
283
|
-
-
|
284
|
-
-
|
285
|
-
-
|
286
|
-
-
|
287
|
-
- live/ticket_metrics_spec.rb
|
288
|
-
- live/ticket_spec.rb
|
289
|
-
- live/topic_comment_spec.rb
|
290
|
-
- live/topic_spec.rb
|
291
|
-
- live/topic_subscription_spec.rb
|
292
|
-
- live/topic_vote_spec.rb
|
293
|
-
- live/upload_spec.rb
|
294
|
-
- live/user_spec.rb
|
295
|
-
- live/view_spec.rb
|
296
|
-
- spec/association_spec.rb
|
297
|
-
- spec/client_spec.rb
|
298
|
-
- spec/collection_spec.rb
|
299
|
-
- spec/configuration_spec.rb
|
300
|
-
- spec/create_resource_spec.rb
|
301
|
-
- spec/data_resource_spec.rb
|
347
|
+
- spec/core/association_spec.rb
|
348
|
+
- spec/core/client_spec.rb
|
349
|
+
- spec/core/collection_spec.rb
|
350
|
+
- spec/core/configuration_spec.rb
|
351
|
+
- spec/core/create_resource_spec.rb
|
352
|
+
- spec/core/data_resource_spec.rb
|
353
|
+
- spec/core/inflection_spec.rb
|
354
|
+
- spec/core/lru_cache_spec.rb
|
355
|
+
- spec/core/middleware/request/etag_cache_spec.rb
|
356
|
+
- spec/core/middleware/request/retry_spec.rb
|
357
|
+
- spec/core/middleware/request/test.jpg
|
358
|
+
- spec/core/middleware/request/upload_spec.rb
|
359
|
+
- spec/core/middleware/response/callback_spec.rb
|
360
|
+
- spec/core/middleware/response/deflate_spec.rb
|
361
|
+
- spec/core/middleware/response/gzip_spec.rb
|
362
|
+
- spec/core/middleware/response/parse_iso_dates_spec.rb
|
363
|
+
- spec/core/read_resource_spec.rb
|
364
|
+
- spec/core/rescue_spec.rb
|
365
|
+
- spec/core/resource_spec.rb
|
366
|
+
- spec/core/search_spec.rb
|
367
|
+
- spec/core/spec_helper.rb
|
368
|
+
- spec/core/trackie_spec.rb
|
302
369
|
- spec/fixtures/Argentina.gif
|
303
370
|
- spec/fixtures/Argentina2.gif
|
304
371
|
- spec/fixtures/credentials.yml.example
|
305
372
|
- spec/fixtures/test_resources.rb
|
306
373
|
- spec/fixtures/zendesk.rb
|
307
|
-
- spec/
|
308
|
-
- spec/
|
374
|
+
- spec/live/Readme.md
|
375
|
+
- spec/live/activity_spec.rb
|
376
|
+
- spec/live/audit_spec.rb
|
377
|
+
- spec/live/bookmark_spec.rb
|
378
|
+
- spec/live/category_spec.rb
|
379
|
+
- spec/live/collection_spec.rb
|
380
|
+
- spec/live/crm_spec.rb
|
381
|
+
- spec/live/custom_role_spec.rb
|
382
|
+
- spec/live/forum_spec.rb
|
383
|
+
- spec/live/forum_subscription_spec.rb
|
384
|
+
- spec/live/group_membership_spec.rb
|
385
|
+
- spec/live/group_spec.rb
|
386
|
+
- spec/live/identity_spec.rb
|
387
|
+
- spec/live/locale_spec.rb
|
388
|
+
- spec/live/macro_spec.rb
|
389
|
+
- spec/live/mobile_device_spec.rb
|
390
|
+
- spec/live/organization_spec.rb
|
391
|
+
- spec/live/request_spec.rb
|
392
|
+
- spec/live/satisfaction_rating_spec.rb
|
393
|
+
- spec/live/setting_spec.rb
|
394
|
+
- spec/live/suspended_ticket_spec.rb
|
395
|
+
- spec/live/ticket_field_spec.rb
|
396
|
+
- spec/live/ticket_metrics_spec.rb
|
397
|
+
- spec/live/ticket_spec.rb
|
398
|
+
- spec/live/topic_comment_spec.rb
|
399
|
+
- spec/live/topic_spec.rb
|
400
|
+
- spec/live/topic_subscription_spec.rb
|
401
|
+
- spec/live/topic_vote_spec.rb
|
402
|
+
- spec/live/upload_spec.rb
|
403
|
+
- spec/live/user_spec.rb
|
404
|
+
- spec/live/view_spec.rb
|
309
405
|
- spec/macros/resource_macros.rb
|
310
|
-
- spec/
|
311
|
-
- spec/
|
312
|
-
- spec/
|
313
|
-
- spec/
|
314
|
-
- spec/middleware/response/callback_spec.rb
|
315
|
-
- spec/middleware/response/deflate_spec.rb
|
316
|
-
- spec/middleware/response/gzip_spec.rb
|
317
|
-
- spec/middleware/response/parse_iso_dates_spec.rb
|
318
|
-
- spec/read_resource_spec.rb
|
319
|
-
- spec/rescue_spec.rb
|
320
|
-
- spec/resource_spec.rb
|
321
|
-
- spec/search_spec.rb
|
322
|
-
- spec/spec_helper.rb
|
323
|
-
- spec/trackie_spec.rb
|
406
|
+
- spec/server/app_spec.rb
|
407
|
+
- spec/server/helper_spec.rb
|
408
|
+
- spec/server/html_renderer_spec.rb
|
409
|
+
- spec/server/spec_helper.rb
|
324
410
|
- util/resource_handler.rb
|
325
411
|
- util/verb_handler.rb
|
326
412
|
- zendesk_api.gemspec
|
@@ -350,32 +436,67 @@ signing_key:
|
|
350
436
|
specification_version: 3
|
351
437
|
summary: Zendesk REST API Client
|
352
438
|
test_files:
|
353
|
-
- spec/association_spec.rb
|
354
|
-
- spec/client_spec.rb
|
355
|
-
- spec/collection_spec.rb
|
356
|
-
- spec/configuration_spec.rb
|
357
|
-
- spec/create_resource_spec.rb
|
358
|
-
- spec/data_resource_spec.rb
|
439
|
+
- spec/core/association_spec.rb
|
440
|
+
- spec/core/client_spec.rb
|
441
|
+
- spec/core/collection_spec.rb
|
442
|
+
- spec/core/configuration_spec.rb
|
443
|
+
- spec/core/create_resource_spec.rb
|
444
|
+
- spec/core/data_resource_spec.rb
|
445
|
+
- spec/core/inflection_spec.rb
|
446
|
+
- spec/core/lru_cache_spec.rb
|
447
|
+
- spec/core/middleware/request/etag_cache_spec.rb
|
448
|
+
- spec/core/middleware/request/retry_spec.rb
|
449
|
+
- spec/core/middleware/request/test.jpg
|
450
|
+
- spec/core/middleware/request/upload_spec.rb
|
451
|
+
- spec/core/middleware/response/callback_spec.rb
|
452
|
+
- spec/core/middleware/response/deflate_spec.rb
|
453
|
+
- spec/core/middleware/response/gzip_spec.rb
|
454
|
+
- spec/core/middleware/response/parse_iso_dates_spec.rb
|
455
|
+
- spec/core/read_resource_spec.rb
|
456
|
+
- spec/core/rescue_spec.rb
|
457
|
+
- spec/core/resource_spec.rb
|
458
|
+
- spec/core/search_spec.rb
|
459
|
+
- spec/core/spec_helper.rb
|
460
|
+
- spec/core/trackie_spec.rb
|
359
461
|
- spec/fixtures/Argentina.gif
|
360
462
|
- spec/fixtures/Argentina2.gif
|
361
463
|
- spec/fixtures/credentials.yml.example
|
362
464
|
- spec/fixtures/test_resources.rb
|
363
465
|
- spec/fixtures/zendesk.rb
|
364
|
-
- spec/
|
365
|
-
- spec/
|
466
|
+
- spec/live/Readme.md
|
467
|
+
- spec/live/activity_spec.rb
|
468
|
+
- spec/live/audit_spec.rb
|
469
|
+
- spec/live/bookmark_spec.rb
|
470
|
+
- spec/live/category_spec.rb
|
471
|
+
- spec/live/collection_spec.rb
|
472
|
+
- spec/live/crm_spec.rb
|
473
|
+
- spec/live/custom_role_spec.rb
|
474
|
+
- spec/live/forum_spec.rb
|
475
|
+
- spec/live/forum_subscription_spec.rb
|
476
|
+
- spec/live/group_membership_spec.rb
|
477
|
+
- spec/live/group_spec.rb
|
478
|
+
- spec/live/identity_spec.rb
|
479
|
+
- spec/live/locale_spec.rb
|
480
|
+
- spec/live/macro_spec.rb
|
481
|
+
- spec/live/mobile_device_spec.rb
|
482
|
+
- spec/live/organization_spec.rb
|
483
|
+
- spec/live/request_spec.rb
|
484
|
+
- spec/live/satisfaction_rating_spec.rb
|
485
|
+
- spec/live/setting_spec.rb
|
486
|
+
- spec/live/suspended_ticket_spec.rb
|
487
|
+
- spec/live/ticket_field_spec.rb
|
488
|
+
- spec/live/ticket_metrics_spec.rb
|
489
|
+
- spec/live/ticket_spec.rb
|
490
|
+
- spec/live/topic_comment_spec.rb
|
491
|
+
- spec/live/topic_spec.rb
|
492
|
+
- spec/live/topic_subscription_spec.rb
|
493
|
+
- spec/live/topic_vote_spec.rb
|
494
|
+
- spec/live/upload_spec.rb
|
495
|
+
- spec/live/user_spec.rb
|
496
|
+
- spec/live/view_spec.rb
|
366
497
|
- spec/macros/resource_macros.rb
|
367
|
-
- spec/
|
368
|
-
- spec/
|
369
|
-
- spec/
|
370
|
-
- spec/
|
371
|
-
- spec/middleware/response/callback_spec.rb
|
372
|
-
- spec/middleware/response/deflate_spec.rb
|
373
|
-
- spec/middleware/response/gzip_spec.rb
|
374
|
-
- spec/middleware/response/parse_iso_dates_spec.rb
|
375
|
-
- spec/read_resource_spec.rb
|
376
|
-
- spec/rescue_spec.rb
|
377
|
-
- spec/resource_spec.rb
|
378
|
-
- spec/search_spec.rb
|
379
|
-
- spec/spec_helper.rb
|
380
|
-
- spec/trackie_spec.rb
|
498
|
+
- spec/server/app_spec.rb
|
499
|
+
- spec/server/helper_spec.rb
|
500
|
+
- spec/server/html_renderer_spec.rb
|
501
|
+
- spec/server/spec_helper.rb
|
381
502
|
has_rdoc:
|
data/live/topic_comment_spec.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe ZendeskAPI::Topic::TopicComment, :not_findable do
|
4
|
-
def valid_attributes
|
5
|
-
{ :body => "Texty-text, text.", :topic_id => topic.id }
|
6
|
-
end
|
7
|
-
|
8
|
-
it_should_be_creatable
|
9
|
-
it_should_be_updatable :body
|
10
|
-
it_should_be_deletable
|
11
|
-
it_should_be_readable topic, :comments
|
12
|
-
it_should_be_readable current_user, :topic_comments
|
13
|
-
end
|