specs.watchr in chatterbot-0.7.1 vs specs.watchr in chatterbot-0.9.0
- old
+ new
@@ -18,11 +18,11 @@
end
end
def run(files_to_run)
puts("Running: #{files_to_run}")
- system("clear;rspec -cfs #{files_to_run}")
+ system("clear;rspec -cfd #{files_to_run}")
no_int_for_you
end
def run_all_specs
run(all_spec_files.join(' '))
@@ -41,20 +41,8 @@
# Signal Handling
# --------------------------------------------------
def no_int_for_you
@sent_an_int = nil
-end
-
-Signal.trap 'INT' do
- if @sent_an_int then
- puts " A second INT? Ok, I get the message. Shutting down now."
- exit
- else
- puts " Did you just send me an INT? Ugh. I'll quit for real if you do it again."
- @sent_an_int = true
- Kernel.sleep 1.5
- run_all_specs
- end
end
run_all_specs