Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure the message for "sudo" pass prompt #256

Merged
merged 2 commits into from
Sep 25, 2013
Merged

Conversation

aibou
Copy link
Contributor

@aibou aibou commented Sep 25, 2013

サーバの環境によって,sudoのパスメッセージがPassword:のときもあるため,spec_helper.rbで設定できるようにしました.

RSpec.configure do |c|
  c.pass_prompt = /^Password/
  # or
  c.pass_prompt = "^Password"
end

何も設定しなければ,従来の/^\[sudo\] password for/ が設定されるようにしております.

@coveralls
Copy link

Coverage Status

Coverage increased (+95.83%) when pulling 79533a3 on aibou:master into e7ff023 on serverspec:master.

@mizzy
Copy link
Owner

mizzy commented Sep 25, 2013

これはとても良いですね!ありがとうございます!

mizzy added a commit that referenced this pull request Sep 25, 2013
configure the message for "sudo" pass prompt
@mizzy mizzy merged commit ed692bb into mizzy:master Sep 25, 2013
@mizzy
Copy link
Owner

mizzy commented Sep 25, 2013

coverallsのやつは気にしないでください。こちらのテストの構造の問題で、カバレッジが正常に表示できていないので。

@aibou
Copy link
Contributor Author

aibou commented Sep 25, 2013

ありがとうございました!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants