spec/cfoundry/v2/app_event_spec.rb in cfoundry-2.1.2.rc1 vs spec/cfoundry/v2/app_event_spec.rb in cfoundry-2.2.0.rc1
- old
+ new
@@ -75,8 +75,23 @@
app_event.exit_description = 123
}.to raise_error(Mismatch)
end
end
end
+
+ describe "#timestamp" do
+ it "has a timestamp" do
+ app_event.timestamp = "2013-04-23 12:43:23 +0000"
+ expect(app_event.timestamp).to eq("2013-04-23 12:43:23 +0000")
+ end
+
+ context "when an invalid value is assigned" do
+ it "raises a Mismatch exception" do
+ expect {
+ app_event.timestamp = 42
+ }.to raise_error(Mismatch)
+ end
+ end
+ end
end
end
end