end
def content_summary
- ApplicationController.helpers.human_readable_bytes_html(total_bytes) + " " + super
+ if total_bytes > 0
+ ApplicationController.helpers.human_readable_bytes_html(total_bytes) + " " + super
+ elsif description
+ description
+ else
+ super + " modified at " + modified_at.to_s
+ end
end
def total_bytes
"/projects/#{project['uuid']}#Advanced"))
assert_text("API response")
find("#page-wrapper .nav-tabs :first-child a").click
- assert_text("bytes Collection")
+ assert_text("Collection modified at")
+ end
+
+ test "verify description column in data collections tab" do
+ project = api_fixture('groups')['aproject']
+ visit(page_with_token('active_trustedclient', "/projects/#{project['uuid']}"))
+
+ collection = api_fixture('collections')['collection_to_move_around_in_aproject']
+ assert_text collection['name']
+ assert_text collection['description']
+ assert_text 'Collection modified at' # there are collections with no descriptions
end
end
updated_at: 2014-02-03T17:22:54Z
manifest_text: ". 73feffa4b7f6bb68e44cf984c85f6e88+3 0:3:baz\n"
name: collection_to_move_around
+ description: description for the collection to move around
expired_collection:
uuid: zzzzz-4zz18-mto52zx1s7sn3ih