Skip to content

Commit f97bbee

Browse files
committed
Change test path
1 parent 2c7f887 commit f97bbee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ end
8888

8989
desc 'Test Ruby code.'
9090
task :test_ruby do
91-
file = ENV.fetch('TEST', nil)
92-
file = "test/#{file}" if file
93-
sh "cd ../.. && RAILS_ENV=test rake test TEST=plugins/redmine_tracky/#{file}"
91+
test_cmd = 'RAILS_ENV=test rake test TEST=plugins/redmine_tracky'
92+
test_cmd += "/test/#{file}" if ENV.fetch('TEST', nil)
93+
94+
sh "cd ../.. && #{test_cmd}"
9495
end
9596

9697
desc 'Test JavaScript code.'

0 commit comments

Comments
 (0)