shutl_resource 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/shutl/resource/rest.rb +1 -2
- data/lib/shutl/resource/version.rb +1 -1
- data/spec/rest_resource_spec.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzAyN2EwMWRhNjYwOWUxYjIzNWYwZWY0ZDcyZWI4YTlhOWVlNDZhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmQ3MGQ0ZTY2MWFjNGYzMjlmM2FjMjg0ZjAxYTE2ZjM5ZDYxZDM0Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTIzN2YyYzI0ZWU4YTNhYWZlYzc0ZTU1MDE2MGQ3MDkzYjk5MzM2ZDVhNjNm
|
10
|
+
ZGM2MWNlNzRjZGQ4YmQzNWRlOGQ3ZDgyZWFhNTE1YmNkMTk5MTY5YjY0ZDgw
|
11
|
+
MTY2OTQyZDJhNzI3YjdkY2E0ODhlYWRlMmZjYjU0MDE3N2Y0ZjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmQwYWY0MWJkMGEzZjcxYWI5NjNlMjEzNDdiMThmNGU1N2IxODYzZGY1ZTRl
|
14
|
+
NDhjZmE1NmYwOTI0YzFjZDlmMWVhOTJhOWM2ZTFjYzYyOGIzNjM1ZGZjMzUw
|
15
|
+
MTQzOTQxYWY1MzQwMmI5ZGZkY2YyNjMwMzAxYTIyODdiMTBiMzE=
|
data/lib/shutl/resource/rest.rb
CHANGED
data/spec/rest_resource_spec.rb
CHANGED
@@ -470,5 +470,15 @@ describe Shutl::Resource::Rest do
|
|
470
470
|
end
|
471
471
|
end
|
472
472
|
|
473
|
+
describe '#respond_to?' do
|
474
|
+
subject { TestRest.new a:1, b:2 }
|
473
475
|
|
476
|
+
it 'responds to a getter if it has an attribute' do
|
477
|
+
subject.respond_to?(:a).should be_true
|
478
|
+
end
|
479
|
+
|
480
|
+
it 'does not responsd to a getter if there is no attributes' do
|
481
|
+
subject.respond_to?(:foo).should be_false
|
482
|
+
end
|
483
|
+
end
|
474
484
|
end
|