mongo_session_store-rails 7.0.0 → 7.0.1
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: 4cc351553fcd221464f8cc31fcdf8ed4521ecc0a
|
4
|
+
data.tar.gz: 620cfa638750088628fad4deac356e5508883e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f73e58cf6180feadb3625c7175d463b18109d63fb593fcf5969d96c0cf770d541e06a28763266eb7b306011a0bbb848f4fe4b6bee25cdb4d78778ded73162c5c
|
7
|
+
data.tar.gz: 06d4da4187599b1d19bfec5f091ba02f39008874780a88a31864d2c3d3e810357052e2f51ffd26c02f6d1979788295fdfb58374121bbddb68630ab99ee00cdd1
|
@@ -55,6 +55,24 @@ if mongo_orm == "mongoid"
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
describe "#reload" do
|
59
|
+
it "reloads the record and reset the data attribute cache" do
|
60
|
+
# Create record
|
61
|
+
session = described_class.create :data => { :original => "true" }
|
62
|
+
expect(session.data).to eq(:original => "true")
|
63
|
+
|
64
|
+
# Update record in another object
|
65
|
+
database_record = described_class.find(session.id)
|
66
|
+
database_record.update_attributes!(:data => { :updated => "true" })
|
67
|
+
expect(database_record.data).to eq(:updated => "true")
|
68
|
+
|
69
|
+
# Reload original object
|
70
|
+
session.reload
|
71
|
+
# Should have updated values
|
72
|
+
expect(session.data).to eq(:updated => "true")
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
58
76
|
describe ".collection_name" do
|
59
77
|
# Where the name comes from:
|
60
78
|
# - "test_database" set in spec_helper
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_session_store-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Bruijn
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: actionpack
|