Use millisecond resolution for timestamps of updated directory objects on DELETE requests

This commit is contained in:
2012-11-03 15:00:59 +01:00
parent 483523b091
commit 2c9979f544
2 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ describe "Directories" do
it "updates the timestamps of the existing directory objects" do
directory = directory_bucket.new("jimmy:tasks")
directory.content_type = "text/plain"
directory.data = 2.seconds.ago.to_i.to_s
directory.data = (2.seconds.ago.to_f * 1000).to_i
directory.store
put "/jimmy/tasks/private/projects/world-domination/start", "write a manifesto"
@@ -289,7 +289,7 @@ describe "Directories" do
before do
directory = directory_bucket.new("jimmy:tasks/home")
directory.content_type = "text/plain"
directory.data = 2.seconds.ago.to_i.to_s
directory.data = (2.seconds.ago.to_f * 1000).to_i
directory.store
end
@@ -384,7 +384,7 @@ describe "Directories" do
describe "timestamps" do
before do
@old_timestamp = 2.seconds.ago.to_i
@old_timestamp = (2.seconds.ago.to_f * 1000).to_i
["tasks/home", "tasks", ""].each do |dir|
directory = directory_bucket.get("jimmy:#{dir}")