In Rails 4.x we have transactional fixtures that wrap each test in a database transaction. This transaction rollbacks all the changes at the end of the test. It means the state of the database, before the test is same as after the test is done. By default this functionality is enabled. We can choose to disable it in a test case class by setting the class attribute use_transactional_fixtures to fal