cfoundry 2.1.2.rc1 → 2.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cfoundry/v2/app_event.rb +1 -0
- data/lib/cfoundry/version.rb +1 -1
- data/spec/cfoundry/v2/app_event_spec.rb +15 -0
- metadata +3 -3
data/lib/cfoundry/version.rb
CHANGED
@@ -77,6 +77,21 @@ module CFoundry
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
80
|
+
|
81
|
+
describe "#timestamp" do
|
82
|
+
it "has a timestamp" do
|
83
|
+
app_event.timestamp = "2013-04-23 12:43:23 +0000"
|
84
|
+
expect(app_event.timestamp).to eq("2013-04-23 12:43:23 +0000")
|
85
|
+
end
|
86
|
+
|
87
|
+
context "when an invalid value is assigned" do
|
88
|
+
it "raises a Mismatch exception" do
|
89
|
+
expect {
|
90
|
+
app_event.timestamp = 42
|
91
|
+
}.to raise_error(Mismatch)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
80
95
|
end
|
81
96
|
end
|
82
97
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.rc1
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-06-
|
13
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -429,7 +429,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
429
429
|
version: '0'
|
430
430
|
segments:
|
431
431
|
- 0
|
432
|
-
hash:
|
432
|
+
hash: 3546131754445164394
|
433
433
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
434
434
|
none: false
|
435
435
|
requirements:
|