Skip to content

Instantly share code, notes, and snippets.

@joshsusser
Created September 26, 2009 20:23
Show Gist options
  • Save joshsusser/194405 to your computer and use it in GitHub Desktop.
Save joshsusser/194405 to your computer and use it in GitHub Desktop.
# put at top of test_helper.rb
require 'yaml'
Dir[File.expand_path(File.join(File.dirname(__FILE__), "fixtures/**/*.yml"))].each do |f|
begin
YAML.load_file(f)
rescue StandardError => e
puts "!!!!! YAML parse error in file: #{f}"
puts e.message
exit 1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment