closes #4054
[arvados.git] / apps / workbench / test / test_helper.rb
index 1a07e43be1fb51c5fe3c9a7796121ea684a9407c..89341a6323ed5742a02bc457dfd4004c2872e9dd 100644 (file)
@@ -64,7 +64,10 @@ module ApiFixtureLoader
       begin
         path = File.join(ApiServerForTests::ARV_API_SERVER_DIR,
                          'test', 'fixtures', "#{name}.yml")
-        YAML.load(IO.read(path))
+        file = IO.read(path)
+        trim_index = file.index('# Test Helper trims the rest of the file')
+        file = file[0, trim_index] if trim_index
+        YAML.load(file)
       end
       keys.inject(@@api_fixtures[name]) { |hash, key| hash[key] }
     end