Merge branch 'master' into 4062-infinite-scroll-repeat-issue
[arvados.git] / apps / workbench / test / test_helper.rb
index 01a79bbe779aba2ae7fe22af4997f051d95d8d03..d7fff5de704a58a759b7016d4d66cb75ee4d2ba1 100644 (file)
@@ -63,7 +63,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