refactory spec_helper.rb