3 class Arvados::V1::SchemaControllerTest < ActionController::TestCase
5 test "should get fresh discovery document" do
8 assert_response :success
9 discovery_doc = JSON.parse(@response.body)
10 assert_equal 'discovery#restDescription', discovery_doc['kind']
12 Time.now - MAX_SCHEMA_AGE.seconds < discovery_doc['generatedAt'],
13 "discovery document was generated >#{MAX_SCHEMA_AGE}s ago")