spec/spec_helper.rb in gv-RedCloth-4.2.9 vs spec/spec_helper.rb in gv-RedCloth-4.3.2

- old
+ new

@@ -24,13 +24,13 @@ return @fixtures if @fixtures @fixtures = {} Dir[File.join(File.dirname(__FILE__), *%w[fixtures *.yml])].each do |testfile| testgroup = File.basename(testfile, '.yml') num = 0 - YAML::load_documents(File.open(testfile)) do |doc| + YAML::load_stream(File.open(testfile)) do |doc| name = doc['name'] || num @fixtures["#{testgroup} #{name}"] = doc num += 1 end end @fixtures -end \ No newline at end of file +end