Skip to content

Commit

Permalink
@example resolve to nil, self: RSpec::ExampleGroups::ObservesACallToName
Browse files Browse the repository at this point in the history
  • Loading branch information
benoittgt authored and pirj committed Feb 19, 2021
1 parent 4aa5e0b commit ee760f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/rails/fixture_support.rb
Expand Up @@ -13,7 +13,7 @@ module FixtureSupport
# Monkey patched to avoid collisions with 'let(:name)' in Rails 6.1 and after
# and let(:method_name) before Rails 6.1.
def run_in_transaction?
use_transactional_tests && !self.class.uses_transaction?(@example)
use_transactional_tests && !self.class.uses_transaction?(self)
end

included do
Expand Down

0 comments on commit ee760f2

Please sign in to comment.