Deploy a branch other than
master to staging using capistrano?
config/deploy/staging.rb add line
set :branch, 'branch_name'
bundle exec cap staging deploy
Run single minitest file
bundle exec ruby -I test test/models/core/post_test.rb
Installing the Xcode Command Line Tools for Mac
Check if Xcode Command Line Tools are already installed, run
$ xcode-select -p
if the output is something like
/Applications/Xcode.app/Contents/Developer, the tools are already installed, nothing to do
Otherwise install with the below command
$ xcode-select --install