bin/sb in starting_blocks-0.6.1 vs bin/sb in starting_blocks-0.7.0
- old
+ new
@@ -34,15 +34,18 @@
if arguments.include? '--watch'
listener = StartingBlocks::Watcher.start_watching Dir, options
StartingBlocks.display "Going to sleep, waiting for changes"
puts 'Enter "stop" to stop the listener'
+ puts 'Enter a blank line to run all of the tests'
listener.start
loop do
user_input = STDIN.gets
if user_input == "stop\n"
exit
+ elsif user_input == "\n"
+ run_all_specs options
end
end
elsif arguments.include? '--off'
StartingBlocks::Extensions::BlinkyLighting.turn_off!
else