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

Promote cmp usage as it provides results with octal mode #999

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

alexpop
Copy link
Contributor

@alexpop alexpop commented Aug 30, 2016

The default rspec eq matcher outputs the expected mode as decimal:

its('mode') { should eq 0644 }

=>

 File /etc/ssh/ssh_config
     ✔  should be mode 420

where the inspec cmp matcher is outputting it as octal:

its('mode') { should cmp '0644' }

=>

  File /etc/ssh/ssh_config
     ✔  mode should cmp "0644"

@alexpop alexpop added the Aspect: Docs Write the Fine Manual label Aug 30, 2016
@chris-rock
Copy link
Contributor

Thanks @alexpop for this promotion :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: Docs Write the Fine Manual
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants