sessionm-cassandra_object 4.0.14 → 4.0.15
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dcee4e003abd64bad04d78620d2fc05160c8edd
|
4
|
+
data.tar.gz: d75cf2ef6ec176801bc10741199ad59071cb7401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a92b846e3fdc6acdab89f5d840fbce593ceb2ec00961a8b817293e66eba2408b217491d1ab61d415d11d1456cd78f8cf289212673d263c488be6f302c56a3b17
|
7
|
+
data.tar.gz: b37740caa7397acea99ce7694c6613a0a0b9769f7f581b534c6adf62390724abe628f8264aeea339bcc7ab38e0ceee0f4659573d5d5ee6899b994970974e9ee8
|
@@ -16,5 +16,14 @@ describe CassandraObject::Associations do
|
|
16
16
|
expect(role.user.id).to eq user.id
|
17
17
|
expect(user.issue.id).to eq issue.id
|
18
18
|
end
|
19
|
+
|
20
|
+
it "should set the foreign key attribute when assigned through the belongs_to relationship" do
|
21
|
+
issue = Issue.create! :description => 'web site not working', :worth => 1.5
|
22
|
+
user = User.create! :position => 1, :issue => issue
|
23
|
+
expect(user.issue_id).to eq issue.id
|
24
|
+
|
25
|
+
user.issue = issue
|
26
|
+
expect(user.issue_id).to eq issue.id
|
27
|
+
end
|
19
28
|
end
|
20
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sessionm-cassandra_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Youch
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Cassandra ActiveModel
|
15
15
|
email: doug@sessionm.com
|