Class: ActiveSupport::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/wagons/extensions/test_case.rb

Class Method Summary collapse

Class Method Details

.reset_fixture_path(path) ⇒ Object

Resets the fixtures to the new path



4
5
6
7
8
9
10
11
12
13
# File 'lib/wagons/extensions/test_case.rb', line 4

def self.reset_fixture_path(path)
  self.fixture_table_names = []
  self.fixture_class_names = {}
  if Gem::Version.new(Rails::VERSION::STRING) < Gem::Version.new('7.1.0')
    self.fixture_path = path
  else
    self.fixture_paths = [path]
  end
  fixtures :all
end