Skip to content

Commit

Permalink
Fixed running tests with rbenv
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspard committed Apr 16, 2012
1 parent 5b9c452 commit a448268
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/tasks/zena.rake
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,17 @@ namespace :zena do
end
end

tests = ['test/unit/**/*_test.rb', 'test/functional/*_test.rb', 'test/integration/*_test.rb'].map {|p| "#{Zena::ROOT}/#{p}"}
tests = ['test/unit/**/*_test.rb', 'test/functional/*_test.rb', 'test/integration/*_test.rb'].map do |p|
Dir.glob(
"#{Zena::ROOT}/#{p}"
)
end.flatten

tests += Bricks.test_files

Rake::TestTask.new(:test => ["zena:test:prepare", "zena:build_fixtures"]) do |t|
t.libs << "test"
t.pattern = tests
t.test_files = tests
t.verbose = true
end
Rake::Task['zena:test'].comment = "Run the tests in test/helpers and test/unit"
Expand Down

0 comments on commit a448268

Please sign in to comment.