Skip to content

Commit

Permalink
add support for test_helper file in fspec (load it before any other t…
Browse files Browse the repository at this point in the history
…est files, if it exists)
  • Loading branch information
bakkdoor committed Dec 9, 2012
1 parent a881c34 commit 382ab66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/fspec
Expand Up @@ -25,6 +25,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
}

start = Time now
test_files sort each: |f| {
require: f
Expand Down

0 comments on commit 382ab66

Please sign in to comment.