search for: original_dir

Displaying 1 result from an estimated 1 matches for "original_dir".

2006 May 24
0
[tip] Test coverage
...nctional directories" task :missing_tests models = Dir.glob("app/models/**/*.rb") controllers = Dir.glob("app/controllers/**/*.rb") unit_tests = Dir.glob("test/unit/**/*.rb") functional_tests = Dir.glob("test/functional/**/*.rb") models.each do|model| original_dir, suspected_test = File.split(model) suspected_test.sub!(''.rb'', '''') test_found = !unit_tests.select{|s| s =~ /#{suspected_test}_test/}.empty? puts "unit test apparently missing for #{model}" unless test_found end controllers.each do|controller|...