scorm_engine 0.6.5 → 0.6.6

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: e3c3fd768f7ac226d80a0763018c59b9c5a2f02ec7fa09a4cfaf33b9dfcff19a
4
- data.tar.gz: 5d84b91b94c967dd691c6f551aee6ecd456ba12388aa0c55478dcc98b6cd10bb
3
+ metadata.gz: 4c507da57a7a18d0c058187941df270ff46ef49adf40a3014e5db7634e171966
4
+ data.tar.gz: fcfdde88f3edc1626bb5d8706baf44e57e435a3261a7c97b82db9fbd79f0a9f4
5
5
  SHA512:
6
- metadata.gz: 24c6763d7f53e431fc0eb4046bbdea715c90eca65c384d5c1a3b27483b6c19a6df6706569be65cf8169490687518d1f96f79ff5f0a7e3b77703f67cfc8fea24f
7
- data.tar.gz: 488f74b3b43e68382ae015e128e36df64ff1dfe2378222f40d136af7f2028a2683783402040d791251dd7b290185e58ec889e76b4a51e9bb0f9c3da6868fc2c4
6
+ metadata.gz: e879b2fa7079cf528999dbc8858b2a6e7ce4ae2e98e956981ccc4febb08bfe1386978ba4d4a0378224d57c64f4d1f892c2fe41ef7dfd05b7f786917af1b58491
7
+ data.tar.gz: 1f008d07e1816cb3e908b2329c613d5bb08b8e368c1e7a1519f248ded21b4cd96c836e4050a70289924f1ad1e40c7acd042ece0304b3557bf9e918adcd09a813
@@ -91,7 +91,7 @@ module ScormEngine
91
91
  response = get("destinations/#{options[:destination_id]}")
92
92
 
93
93
  # merge options to pick up destination_id which isn't passed back in the response
94
- result = response.success? ? ScormEngine::Models::Destination.new_from_api(options.merge(response.body)) : nil
94
+ result = response.success? ? ScormEngine::Models::Destination.new_from_api({ "id" => options[:destination_id] }.merge(response.body)) : nil
95
95
 
96
96
  Response.new(raw_response: response, result: result)
97
97
  end
@@ -1,3 +1,3 @@
1
1
  module ScormEngine
2
- VERSION = "0.6.5".freeze
2
+ VERSION = "0.6.6".freeze
3
3
  end
@@ -102,6 +102,7 @@ RSpec.describe ScormEngine::Api::Endpoints::Destinations do
102
102
  it "sucessfully creates the destination attributes" do
103
103
  aggregate_failures do
104
104
  destination = response.result
105
+ expect(destination.id).to eq destination_options[:destination_id]
105
106
  expect(destination.name).to eq destination_options[:name]
106
107
  end
107
108
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scorm_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-10 00:00:00.000000000 Z
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday