We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a72fd8 commit 0ea9f02Copy full SHA for 0ea9f02
lib/rspec-puppet/monkey_patches.rb
@@ -13,9 +13,9 @@ class RSpec::Puppet::EventListener
13
def self.example_started(example)
14
@rspec_puppet_example = example.example.example_group.ancestors.include?(RSpec::Puppet::Support)
15
@current_example = example.example
16
- if !@current_example.respond_to?(:environment) && @current_example.respond_to?(:example_group_instance)
17
- @current_example = @current_example.example_group_instance
18
- end
+ return unless !@current_example.respond_to?(:environment) && @current_example.respond_to?(:example_group_instance)
+
+ @current_example = @current_example.example_group_instance
19
end
20
21
def self.example_passed(_example)
0 commit comments