Skip to content

Commit 04c7065

Browse files
(CAT-2484) Fix rspec warning.
This commit fixes the following warning that appeared at the top of the rspec output: ``` WARNING: `around(:context)` hooks are not supported and behave like `around(:example)`. Called from ... ``` Signed-off-by: Gavin Didrichsen <[email protected]>
1 parent 348fe92 commit 04c7065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/puppet-lint/bin_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def initialize(args)
635635

636636
context 'when overriding config file options with command line options' do
637637
context 'and config file sets "--only-checks=variable_contains_dash"' do
638-
around(:context) do |example|
638+
around(:each) do |example|
639639
Dir.mktmpdir do |tmpdir|
640640
Dir.chdir(tmpdir) do
641641
File.open('.puppet-lint.rc', 'wb') do |f|

0 commit comments

Comments
 (0)