Spork initialises rails once and thereafter uses that copy of rails to
run spec tests, leading to much faster test runs. On my machine, testing
index.html.haml takes 2s instead of 7s after this change, and `rake`
takes ~9s instead of ~18s.
Instructions once again taken from
http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html, though I
didn't copy any code for this commit.
- .watchr script mostly nicked from
http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html
- I moved the views specs to mirror the location of the files they test
in /app, in order to keep the .watchr script simple
- as an added bonus, `rake spec:views` now works :-)