Rspec-rails: Use transactional tests

Created on 6 Mar 2018  路  1Comment  路  Source: rspec/rspec-rails

In March 2015, rails introduced a change renaming use_transactional_fixtures to use_transactional_tests. However, it looks like in rspc 3.7.0 this change is still not implemented and the gem is using the deprecated key. This is evidenced by the following attempt to use the new name:

NoMethodError:
  undefined method `use_transactional_tests=' for #<RSpec::Core::Configuration:0x00007fc741859070>
  Did you mean?  use_transactional_fixtures=

The change should be as simple as renaming current usages in the repo.

Most helpful comment

The RSpec setting is use_transactional_fixtures it talks to the correct method under the hood in Rails for you.

>All comments

The RSpec setting is use_transactional_fixtures it talks to the correct method under the hood in Rails for you.

Was this page helpful?
0 / 5 - 0 ratings