mirror of https://github.com/rails/rails
Use rails() instead of system()
This commit is contained in:
parent
60cf674af1
commit
75afb43a25
|
@ -20,10 +20,7 @@ module ApplicationTests
|
|||
def precompile!(env = nil)
|
||||
with_env env.to_h do
|
||||
quietly do
|
||||
precompile_task = "bin/rails assets:precompile --trace 2>&1"
|
||||
output = Dir.chdir(app_path) { %x[ #{precompile_task} ] }
|
||||
assert $?.success?, output
|
||||
output
|
||||
rails ["assets:precompile", "--trace"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -37,7 +34,7 @@ module ApplicationTests
|
|||
|
||||
def clean_assets!
|
||||
quietly do
|
||||
assert Dir.chdir(app_path) { system("bin/rails assets:clobber") }
|
||||
rails ["assets:clobber"]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue