Open a tmux session with two windows
0:test - Window for running tests
1:editor - Window for your editor of choice
Enter test command in the test window
infdo bundle exec rake test
Change some files in the editor and then press Ctrl+b v
to automatically start tests and switch to test window