Skip to content

Commit f9cd33a

Browse files
compwronCopilot
andcommitted
Update spec/support/prosopite.rb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 85fd417 commit f9cd33a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spec/support/prosopite.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ def create(*args, **kwargs, &block)
5252
else
5353
original_enabled = Prosopite.enabled?
5454
Prosopite.enabled = false
55-
example.run
56-
Prosopite.enabled = original_enabled
55+
begin
56+
example.run
57+
ensure
58+
Prosopite.enabled = original_enabled
59+
end
5760
end
5861
end
5962
end

0 commit comments

Comments
 (0)