Got rid of redundant code in spec_helper.rb