Move capture method to sepc_helper.rb
Update specs in example