4062: test updates
[arvados.git] / apps / workbench / test / test_helper.rb
index 5253676578e18b4eaf0692db37c1358b34c092d3..eea81d1b775d2cc29ac07c877a2ff009f5858456 100644 (file)
@@ -61,7 +61,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
     end
   end