Permalink
Browse files

fspec: always require test_helper if it exists

  • Loading branch information...
1 parent 8fc2be1 commit c55bacd98b74e3ac67acbefc49f0d2648de5ae0f @bakkdoor committed Dec 18, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/fspec
View
@@ -28,10 +28,13 @@ if: (test_files empty?) then: {
test_helper = "#{test_dir}/test_helper.fy"
if: (test_files includes?: test_helper) then: {
- require: test_helper
test_files remove: test_helper
}
+if: (File exists?: test_helper) then: {
+ require: test_helper
+}
+
start = Time now
test_files sort each: |f| {
require: f

0 comments on commit c55bacd

Please sign in to comment.