stator 0.0.17 → 0.1.0
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.
- data/lib/stator/integration.rb +0 -1
- data/lib/stator/version.rb +2 -2
- data/spec/model_spec.rb +7 -1
- metadata +2 -2
data/lib/stator/integration.rb
CHANGED
data/lib/stator/version.rb
CHANGED
data/spec/model_spec.rb
CHANGED
|
@@ -156,12 +156,18 @@ describe Stator::Model do
|
|
|
156
156
|
Time.zone = 'Eastern Time (US & Canada)'
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
+
it 'should store the initial state timestamp when the record is created' do
|
|
160
|
+
a = Animal.new
|
|
161
|
+
a.save
|
|
162
|
+
a.unborn_status_at.should be_within(1).of(Time.zone.now)
|
|
163
|
+
end
|
|
164
|
+
|
|
159
165
|
it 'should store when a record changed state for the first time' do
|
|
160
166
|
a = Animal.new
|
|
161
167
|
a.unborn_status_at.should be_nil
|
|
162
168
|
a.born_status_at.should be_nil
|
|
163
169
|
a.birth
|
|
164
|
-
a.unborn_status_at.should
|
|
170
|
+
a.unborn_status_at.should be_nil
|
|
165
171
|
a.born_status_at.should be_within(1).of(Time.zone.now)
|
|
166
172
|
end
|
|
167
173
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-
|
|
12
|
+
date: 2014-09-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|