Skip to content

Instantly share code, notes, and snippets.

@inokappa
Last active December 18, 2015 06:09
Show Gist options
  • Save inokappa/5737514 to your computer and use it in GitHub Desktop.
Save inokappa/5737514 to your computer and use it in GitHub Desktop.
RSpec.configure do |c|
# 以下を追加
c.path = '/sbin:/usr/sbin'
if ENV['ASK_SUDO_PASSWORD']
require 'highline/import'
c.sudo_password = ask("Enter sudo password: ") { |q| q.echo = false }
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment