Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Silence RSpec 'should' Warning (#3560)
* Failing functional test for RSpec should deprecation * Configure RSpec to allow .should calls * Remove cruft from test files where we needed to filter deprecation warning Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
- Loading branch information
1 parent
12d4b22
commit 7c611a4
Showing
5 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
test/unit/mock/profiles/rspec-should-deprecation/controls/explicit_should.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
control 'call-should-as-an-explicit-method' do | ||
describe 'It should work without issuing a deprecation warning' do | ||
it { 'a string'.should include 'ing' } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: rspec-should-deprecation | ||
title: A profile to trigger an RSpec deprecation warning, refs github 952 | ||
maintainer: The Authors | ||
copyright: The Authors | ||
copyright_email: you@example.com | ||
license: Apache-2.0 | ||
summary: An InSpec Compliance Profile | ||
version: 0.1.0 |