my_john_deere_api 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/my_john_deere_api/request/create/base.rb +1 -3
- data/lib/my_john_deere_api/version.rb +1 -1
- data/test/lib/my_john_deere_api/request/create/asset_location_test.rb +0 -5
- data/test/lib/my_john_deere_api/request/create/asset_test.rb +0 -5
- data/test/lib/my_john_deere_api/request/create/base_test.rb +0 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f60f0a940a61665a81f8e64a2cbb8762beb8136e4e37f13a0ebf66ead20fcac
|
4
|
+
data.tar.gz: 45fb772147464452fdfd3ab37b75548ed9708369d374ba5c69c20ad03a428f51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0166fd3c8b08975d9c5b548f459710bebd2cca464ffad209abe812e5c01c4057a4ec980faf11d0a8201b21fe4d6a24cd6ffe55a86ec70ac87fda429347b55ec7
|
7
|
+
data.tar.gz: b6e4f47f306adfaf52b6bf05054d11285f2a2382ce7f846e86479e6f12eda3bc7194874140036efa35e992f2132906bcd0349ecb58a17c5f6403b7818ac011fd
|
@@ -2,7 +2,7 @@ require 'json'
|
|
2
2
|
|
3
3
|
module MyJohnDeereApi
|
4
4
|
class Request::Create::Base
|
5
|
-
attr_reader :accessor, :attributes, :
|
5
|
+
attr_reader :accessor, :attributes, :response
|
6
6
|
|
7
7
|
##
|
8
8
|
# Accepts a valid oAuth AccessToken, and a hash of attributes.
|
@@ -12,8 +12,6 @@ module MyJohnDeereApi
|
|
12
12
|
@attributes = attributes
|
13
13
|
|
14
14
|
process_attributes
|
15
|
-
|
16
|
-
@errors = {}
|
17
15
|
end
|
18
16
|
|
19
17
|
##
|
@@ -25,11 +25,6 @@ describe 'MyJohnDeereApi::Request::Create::AssetLocation' do
|
|
25
25
|
assert_equal attributes, object.attributes
|
26
26
|
end
|
27
27
|
|
28
|
-
it 'creates an empty error hash' do
|
29
|
-
object = JD::Request::Create::AssetLocation.new(accessor, {})
|
30
|
-
assert_equal({}, object.errors)
|
31
|
-
end
|
32
|
-
|
33
28
|
it 'accepts simple coordinates and generates the geometry' do
|
34
29
|
attributes = {
|
35
30
|
asset_id: asset_id,
|
@@ -24,11 +24,6 @@ describe 'MyJohnDeereApi::Request::Create::Asset' do
|
|
24
24
|
assert_equal accessor, object.accessor
|
25
25
|
assert_equal attributes, object.attributes
|
26
26
|
end
|
27
|
-
|
28
|
-
it 'creates an empty error hash' do
|
29
|
-
object = JD::Request::Create::Asset.new(accessor, {})
|
30
|
-
assert_equal({}, object.errors)
|
31
|
-
end
|
32
27
|
end
|
33
28
|
|
34
29
|
describe '#valid?' do
|
@@ -10,11 +10,6 @@ describe 'MyJohnDeereApi::Request::Create::Base' do
|
|
10
10
|
assert_equal accessor, object.accessor
|
11
11
|
assert_equal attributes, object.attributes
|
12
12
|
end
|
13
|
-
|
14
|
-
it 'creates an empty error hash' do
|
15
|
-
object = JD::Request::Create::Base.new(accessor, {})
|
16
|
-
assert_equal({}, object.errors)
|
17
|
-
end
|
18
13
|
end
|
19
14
|
|
20
15
|
describe '#headers' do
|