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

be_readable, be_writable and be_executable file matchers #48

merged 5 commits into from Apr 9, 2013


Copy link

@mizzy mizzy commented Apr 9, 2013

You can test a file is readable like this.

describe file do
  it { should be_readable }
  it { should'owner') }
  it { should'group') }
  it { should'others') }

Also you can use be_writable and be_executable matchers as same as be_readable.

mizzy added a commit that referenced this issue Apr 9, 2013
be_readable, be_writable and be_executable file matchers
@mizzy mizzy merged commit ba65be2 into master Apr 9, 2013
1 check passed
@mizzy mizzy deleted the rwx_file_matchers branch Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
1 participant