meducation_sdk 1.6.13 → 1.6.14
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2aacdae0cd83a2793b14319ddd2fc4b7241a37f7
|
|
4
|
+
data.tar.gz: 47de75a36bdb6d31e388051743ac5d74d99bfe2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aafdfe29c85d330c67c24a78d8db87aa73b8ac37f30568d4cc656114b62de756f5d0f9ec490d3b57919e88e0f95dcadaca3078f532751261b26a16f230e02ced
|
|
7
|
+
data.tar.gz: a860a7a15a0f8af1e407b64c5b5d14a6ced4612c1f98c6e735750da08b7137dd00596f9a545a5953e4035c55568fda0f7eba8b9bf1bf38a5fd7df14040805632
|
data/CHANGELOG.md
CHANGED
|
@@ -11,19 +11,30 @@ module MeducationSDK
|
|
|
11
11
|
topic.comments
|
|
12
12
|
end
|
|
13
13
|
def test_authors_calls_spi
|
|
14
|
+
authors = [
|
|
15
|
+
Author.new(user_id: 8),
|
|
16
|
+
Author.new(user_id: 10)
|
|
17
|
+
]
|
|
14
18
|
topic = CollectionTopic.new(author_ids: [7, 8, 9])
|
|
15
|
-
MeducationSDK::Author.expects(:where).with(id: [7, 8, 9])
|
|
16
|
-
topic.authors
|
|
19
|
+
MeducationSDK::Author.expects(:where).with(id: [7, 8, 9]).returns(authors)
|
|
20
|
+
assert_equal authors, topic.authors
|
|
21
|
+
assert_equal authors, topic.instance_variable_get(:@authors)
|
|
17
22
|
end
|
|
23
|
+
|
|
18
24
|
def test_users_calls_spi
|
|
19
25
|
authors = [
|
|
20
26
|
Author.new(user_id: 8),
|
|
21
27
|
Author.new(user_id: 10)
|
|
22
28
|
]
|
|
29
|
+
users = [
|
|
30
|
+
User.new(id: 8),
|
|
31
|
+
User.new(id: 10),
|
|
32
|
+
]
|
|
23
33
|
topic = CollectionTopic.new(author_ids: [7, 8, 9])
|
|
24
34
|
MeducationSDK::Author.expects(:where).with(id: [7, 8, 9]).returns(authors)
|
|
25
|
-
MeducationSDK::User.expects(:where).with(id: [8, 10])
|
|
26
|
-
topic.users
|
|
35
|
+
MeducationSDK::User.expects(:where).with(id: [8, 10]).returns(users)
|
|
36
|
+
assert_equal users, topic.users
|
|
37
|
+
assert_equal users, topic.instance_variable_get(:@users)
|
|
27
38
|
end
|
|
28
39
|
end
|
|
29
40
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: meducation_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Walker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|