With this setup, now lets run the specs.
Install zeus with gem i zeus.
In one window, start zeus with zeus start and in another window run the specs zeus rspec spec/file_spec.rb
If your spec pass, you might notice it will run it twice, upper one being green and another failing one.
To mitigate this issue, in the spec_helper.rb file, just delete/comment the line require rspec/autorun.
Wait, everytime I write/modify the code, I’ve to go to the terminal and run that command zeus rspec spec/file_spec.rb again and again.
You might be yelling, dude we have guard for this.
Yeah!! Yeah!! Recently, guard-rspec has added the support for zeus, so lets install it first.
Put it in the Gemfile and bundle it.
RVM was such a great tool to switch between various rubies and gemsets. But
from my last update of the rvm using rvm get head, my shell hangs whenever I
change the directory.
So, I thought it is the time to move on with rbenv.
First delete the rvm with the following cmd:
Delete the rvm specific code from your ~/.bashrc or ~/.zshrc or whaterever
files related to the shell you’re using.
Then install rbenv and rbenv-gemset via homebrew.
brew install rbenv rbenv-gemset
Creating a global gemset
echo global > ~/.rbenv-gemsets
gem install bundler
echo "project-gemset global" > .rbenv-gemsets
Whenever you create a gemset and want to share some gems like bundler,
install the bundler in global gemset as above and add the global gemset along
with the project specific gemset in .rbenv-gemsets file as above.
Well, lately I’ve been busy with the
Chef and still on going. I’ll be
adding a series of Screencasts about the chef in coming weeks. This post has
been taking shape since couple of months ago. I do follow and watch pretty
much every ruby/rails conference videos. On the course of watching, not every
videos are interesting based upon the Speaker, Slides and the Subject. So,
I’ll be adding my picks here that would minimize mine or others time. The
videos I’ll be picking and posting in this series will have the criteria of
Good speaker, slides and the content as well. At the same time, not offending
other speakers and their talks, this will be my personal picks only.