Method: TestUnit::Generators::ScaffoldGenerator#fixture_name

Defined in:
railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb

#fixture_nameObject



31
32
33
34
35
36
37
38
# File 'railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb', line 31

def fixture_name
  @fixture_name ||=
    if mountable_engine?
      (namespace_dirs + [table_name]).join("_")
    else
      table_name
    end
end