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

Allow port to be specified as a string #878

Merged
merged 1 commit into from
Aug 5, 2016
Merged

Conversation

stevendanna
Copy link
Contributor

@stevendanna stevendanna commented Aug 5, 2016

This allows the user to write:

describe port(22) do
  it { should be_listening }
end

as well as

describe port('22') do
  it { should be_listening }
end

without hitting an error.

Fixes #867

Signed-off-by: Steven Danna steve@chef.io

@chris-rock
Copy link
Contributor

Great addition @stevendanna

This allows the user to write:

   describe port(22) do
     it { should be_listening }
   end

as well as

   describe port('22') do
     it { should be_listening }
   end

without hitting an error.

Fixes #867

Signed-off-by: Steven Danna <steve@chef.io>
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.

None yet

3 participants