zendesk_api 1.1.1 → 1.1.2
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.
- data/Gemfile.lock +1 -1
- data/lib/zendesk_api/collection.rb +2 -0
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/core/collection_spec.rb +12 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/zendesk_api/version.rb
CHANGED
@@ -239,6 +239,18 @@ describe ZendeskAPI::Collection do
|
|
239
239
|
[ZendeskAPI::TestResource.new(client, :id => 2), 2]
|
240
240
|
)
|
241
241
|
end
|
242
|
+
|
243
|
+
it "raises an ArgumentError without a block (all)" do
|
244
|
+
expect do |b|
|
245
|
+
subject.all
|
246
|
+
end.to raise_error(ArgumentError)
|
247
|
+
end
|
248
|
+
|
249
|
+
it "raises an ArgumentError without a block (all!)" do
|
250
|
+
expect do |b|
|
251
|
+
subject.all!
|
252
|
+
end.to raise_error(ArgumentError)
|
253
|
+
end
|
242
254
|
end
|
243
255
|
|
244
256
|
context "successful requests" do
|
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: 1.1.
|
4
|
+
version: 1.1.2
|
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: 2013-10-
|
13
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bump
|