joshsusser (owner)

Revisions

  • 984ae7 Sat Sep 26 13:23:01 -0700 2009
gist: 194405 Download_button fork
public
Public Clone URL: git://gist.github.com/194405.git
Embed All Files: show embed
fail_fast_fixtures.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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