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

Modernize rspec syntax #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 12, 2022

This takes lessons from the rubocop-rspec issue and applies them to write a more modern style. This should be more compatible with future versions of rspec.

@@ -21,40 +23,37 @@
apply_manifest(pp, catch_failures: true)
end

describe command("/usr/bin/curl https://#{fact('hostname')}.example.com:443") do
its(:exit_status) { is_expected.to eq 60 }
specify do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, never saw that before

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is applying lessons from rubocop/rubocop-rspec#1231. I had seen it, but not used it before.

@ekohl ekohl marked this pull request as draft January 13, 2022 10:17
This takes lessons from the rubocop-rspec issue[1] and applies them to
write a more modern style. This should be more compatible with future
versions of rspec.

[1]: rubocop/rubocop-rspec#1231
@ekohl ekohl marked this pull request as ready for review August 27, 2023 11:35
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

2 participants