Use integegers for timestamps of sub-directories in directory listings

This commit is contained in:
2012-10-22 13:54:10 +02:00
parent 95adfff6ab
commit 3821d4a055
2 changed files with 3 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ describe "Directories" do
content = JSON.parse(last_response.body)
content.must_include "http://5apps.com"
content.must_include "foo"
content["foo"].must_be_kind_of Integer
content["foo"].to_s.must_match /\d+/
content["foo"].to_s.length.must_be :>=, 10
end
@@ -64,6 +65,7 @@ describe "Directories" do
content.must_include "foo"
content.must_include "http://5apps.com"
content.must_include "home/"
content["home/"].must_be_kind_of Integer
content["home/"].to_s.must_match /\d+/
content["home/"].to_s.length.must_be :>=, 10
end