Skip to content

Modernize rspec syntax#44

Open
ekohl wants to merge 1 commit intovoxpupuli:masterfrom
ekohl:modernize-rspec
Open

Modernize rspec syntax#44
ekohl wants to merge 1 commit intovoxpupuli:masterfrom
ekohl:modernize-rspec

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.


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.

2 participants