Skip to content

Commit ee760f2

Browse files
benoittgtpirj
authored andcommitted
@example resolve to nil, self: RSpec::ExampleGroups::ObservesACallToName
1 parent 4aa5e0b commit ee760f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/fixture_support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module FixtureSupport
1313
# Monkey patched to avoid collisions with 'let(:name)' in Rails 6.1 and after
1414
# and let(:method_name) before Rails 6.1.
1515
def run_in_transaction?
16-
use_transactional_tests && !self.class.uses_transaction?(@example)
16+
use_transactional_tests && !self.class.uses_transaction?(self)
1717
end
1818

1919
included do

0 commit comments

Comments
 (0)