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


None yet
1 participant
Copy link

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 pull request Apr 9, 2013

Merge pull request #48 from mizzy/rwx_file_matchers
be_readable, be_writable and be_executable file matchers

@mizzy mizzy merged commit ba65be2 into master Apr 9, 2013

1 check passed

default The Travis build 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