lib/ember-cli/app.rb in ember-cli-rails-0.1.0 vs lib/ember-cli/app.rb in ember-cli-rails-0.1.1

- old
+ new

@@ -28,9 +28,15 @@ cmd = command(watch: true) @pid = exec(cmd, method: :spawn) at_exit{ stop } end + def run_tests + prepare + tests_pass = exec("#{ember_path} test") + exit 1 unless tests_pass + end + def stop Process.kill "INT", pid if pid @pid = nil end