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

skip parameter ignored inside describe block #1450

Closed
tduffield opened this issue Feb 1, 2017 · 1 comment
Closed

skip parameter ignored inside describe block #1450

tduffield opened this issue Feb 1, 2017 · 1 comment

Comments

@tduffield
Copy link
Contributor

Description

When specified inside the describe block, the skip parameter is being ignored.

Test:

describe port(80) do
  it { should_not be_listening }
  skip 'This is an example test, replace with your own test.'
end

Output:

Port 80
     ∅  should not be listening
     expected `Port 80.listening?` to return false, got true
     ↺  This is an example test, replace with your own test.

InSpec and Platform Version

Latest (master)

Replication Case

Tell us what steps to take to replicate your problem. See How to create a Minimal, Complete, and Verifiable example
for information on how to create a good replication case.

Possible Solutions

If you have already ideas how to solve the issue, add them here.

Stacktrace

Please include the stacktrace output or link to a gist of it, if there is one.

@tduffield
Copy link
Contributor Author

After discussing with @chris-rock, this is actually the intended functionality.

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

No branches or pull requests

1 participant