revision-truncate-20101213-fix-fixtures.diff

Toshi MARUYAMA, 2010-12-20 12:06

Download (1.09 KB)

View differences:

test/unit/repository_git_test.rb
18 18
require File.expand_path('../../test_helper', __FILE__)
19 19

  
20 20
class RepositoryGitTest < ActiveSupport::TestCase
21
  fixtures :projects
21
  fixtures :projects, :repositories, :enabled_modules, :users, :roles 
22 22
  
23 23
  # No '..' in the repository path
24 24
  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/git_repository'
test/unit/repository_subversion_test.rb
18 18
require File.expand_path('../../test_helper', __FILE__)
19 19

  
20 20
class RepositorySubversionTest < ActiveSupport::TestCase
21
  fixtures :projects, :repositories
21
  fixtures :projects, :repositories, :enabled_modules, :users, :roles 
22 22
  
23 23
  def setup
24 24
    @project = Project.find(1)