fix svn repository controller tests

pull/1186/head
Martin Linkhorst 12 years ago
parent 24d4325f9f
commit 82e73f51d1
  1. 3
      config/routes.rb
  2. 4
      test/functional/repositories_subversion_controller_test.rb

@ -292,8 +292,7 @@ OpenProject::Application.routes.draw do
match '/projects/:id/repository/revisions', :action => :revisions
match '/projects/:id/repository/revisions.:format', :action => :revisions
match '/projects/:id/repository/revisions/:rev', :action => :revision
match '/projects/:id/repository/revisions/:rev/diff', :action => :diff
match '/projects/:id/repository/revisions/:rev/diff.:format', :action => :diff
match '/projects/:id/repository/revisions/:rev/diff/*path(.:format)', :action => :diff
match '/projects/:id/repository/revisions/:rev/raw/*path', :action => :entry, :format => 'raw', :rev => /[a-z0-9\.\-_]+/
match '/projects/:id/repository/revisions/:rev/:action/*path', :rev => /[a-z0-9\.\-_]+/
match '/projects/:id/repository/raw/*path', :action => :entry, :format => 'raw'

@ -193,7 +193,7 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
:child => { :tag => 'li',
# link to the entry at rev 2
:child => { :tag => 'a',
:attributes => {:href => '/projects/ecookbook/repository/revisions/2/entry/test/some/path/in/the/repo'},
:attributes => {:href => '/projects/ecookbook/repository/revisions/2/raw/test/some/path/in/the/repo'},
:content => 'repo',
# link to partial diff
:sibling => { :tag => 'a',
@ -240,7 +240,7 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
:child => { :tag => 'li',
# link to the entry at rev 2
:child => { :tag => 'a',
:attributes => {:href => '/projects/ecookbook/repository/revisions/2/entry/path/in/the/repo'},
:attributes => {:href => '/projects/ecookbook/repository/revisions/2/raw/path/in/the/repo'},
:content => 'repo',
# link to partial diff
:sibling => { :tag => 'a',

Loading…
Cancel
Save