my_john_deere_api 0.9.2 → 0.9.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fde9f56f0fd642e9e1247e190e9eeee82b674ff0e79ca7cfd80f58d95185842
|
|
4
|
+
data.tar.gz: eff0b0b154430e84c376f3126a458818432c6d6d55e0899b79c7a1b3998e4ca9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99682f2871d4decac76365fe8f0bec978494f4a1b9d88e84d3252d8a2f4baf57f6e53ab32ae069118cbec5721908e630453ecc7dee41ff120c4b57dcdbb71fae
|
|
7
|
+
data.tar.gz: 0b0e0d86ba249f1f1aa1a9ad9248c3b385f9353b976057e47138bf25e2b56dd37718d601eed6ab767527eec1fd79b29e7cef58747aa683a244196079a1bb65b7
|
|
@@ -29,7 +29,7 @@ module MyJohnDeereApi
|
|
|
29
29
|
raise AccessTokenError unless accessor
|
|
30
30
|
|
|
31
31
|
return @assets if defined?(@assets)
|
|
32
|
-
@assets = MyJohnDeereApi::Request::Collection::Assets.new(accessor, organization: id)
|
|
32
|
+
@assets = MyJohnDeereApi::Request::Collection::Assets.new(accessor, organization: id)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
private
|
|
@@ -88,9 +88,9 @@ describe 'MyJohnDeereApi::Model::Organization' do
|
|
|
88
88
|
it 'returns a collection of assets for this organization' do
|
|
89
89
|
accessor
|
|
90
90
|
organization = VCR.use_cassette('get_organizations') { client.organizations.first }
|
|
91
|
-
assets = VCR.use_cassette('get_assets') { organization.assets }
|
|
91
|
+
assets = VCR.use_cassette('get_assets') { organization.assets.all; organization.assets }
|
|
92
92
|
|
|
93
|
-
assert_kind_of
|
|
93
|
+
assert_kind_of JD::Request::Collection::Assets, assets
|
|
94
94
|
|
|
95
95
|
assets.each do |assets|
|
|
96
96
|
assert_kind_of JD::Model::Asset, assets
|