"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/integration/routing/repositories_test.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

repositories_test.rb  (redmine-4.0.3):repositories_test.rb  (redmine-4.0.4)
skipping to change at line 23 skipping to change at line 23
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA . # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA .
require File.expand_path('../../../test_helper', __FILE__) require File.expand_path('../../../test_helper', __FILE__)
class RoutingRepositoriesTest < Redmine::RoutingTest class RoutingRepositoriesTest < Redmine::RoutingTest
def setup def setup
@paths = ['path/to/file.c', 'path/to/index.html', 'raw/file.c'] @paths = ['path/to/index.html',
'path/to/file.c', 'path/to/file.yaml', 'path/to/file.txt',
'raw/file.c']
end end
def test_repositories_resources def test_repositories_resources
should_route 'GET /projects/foo/repositories/new' => 'repositories#new', :pr oject_id => 'foo' should_route 'GET /projects/foo/repositories/new' => 'repositories#new', :pr oject_id => 'foo'
should_route 'POST /projects/foo/repositories' => 'repositories#create', :pr oject_id => 'foo' should_route 'POST /projects/foo/repositories' => 'repositories#create', :pr oject_id => 'foo'
should_route 'GET /repositories/1/edit' => 'repositories#edit', :id => '1' should_route 'GET /repositories/1/edit' => 'repositories#edit', :id => '1'
should_route 'PUT /repositories/1' => 'repositories#update', :id => '1' should_route 'PUT /repositories/1' => 'repositories#update', :id => '1'
should_route 'DELETE /repositories/1' => 'repositories#destroy', :id => '1' should_route 'DELETE /repositories/1' => 'repositories#destroy', :id => '1'
skipping to change at line 55 skipping to change at line 57
should_route 'GET /projects/foo/repository/svn/graph' => 'repositories#graph ', :id => 'foo', :repository_id => 'svn' should_route 'GET /projects/foo/repository/svn/graph' => 'repositories#graph ', :id => 'foo', :repository_id => 'svn'
end end
def test_repositories_revisions_with_repository_id def test_repositories_revisions_with_repository_id
should_route 'GET /projects/foo/repository/foo/revision' => 'repositories#re vision', :id => 'foo', :repository_id => 'foo' should_route 'GET /projects/foo/repository/foo/revision' => 'repositories#re vision', :id => 'foo', :repository_id => 'foo'
should_route 'GET /projects/foo/repository/foo/revisions' => 'repositories#r evisions', :id => 'foo', :repository_id => 'foo' should_route 'GET /projects/foo/repository/foo/revisions' => 'repositories#r evisions', :id => 'foo', :repository_id => 'foo'
should_route 'GET /projects/foo/repository/foo/revisions.atom' => 'repositor ies#revisions', :id => 'foo', :repository_id => 'foo', :format => 'atom' should_route 'GET /projects/foo/repository/foo/revisions.atom' => 'repositor ies#revisions', :id => 'foo', :repository_id => 'foo', :format => 'atom'
should_route 'GET /projects/foo/repository/foo/revisions/2457' => 'repositor ies#revision', :id => 'foo', :repository_id => 'foo', :rev => '2457' should_route 'GET /projects/foo/repository/foo/revisions/2457' => 'repositor ies#revision', :id => 'foo', :repository_id => 'foo', :rev => '2457'
should_route 'GET /projects/foo/repository/foo/revisions/2457/show' => 'repo sitories#show', :id => 'foo', :repository_id => 'foo', :rev => '2457', :format = > 'html' should_route 'GET /projects/foo/repository/foo/revisions/2457/show' => 'repo sitories#show', :id => 'foo', :repository_id => 'foo', :rev => '2457', :format = > 'html'
should_route 'GET /projects/foo/repository/foo/revisions/2457/diff' => 'repo sitories#diff', :id => 'foo', :repository_id => 'foo', :rev => '2457', :format = > 'html' should_route 'GET /projects/foo/repository/foo/revisions/2457/diff' => 'repo sitories#diff', :id => 'foo', :repository_id => 'foo', :rev => '2457'
%w(show diff entry raw annotate).each do |action| %w(show entry raw annotate).each do |action|
@paths.each do |path| @paths.each do |path|
should_route "GET /projects/foo/repository/foo/revisions/2457/#{action}/ #{path}" => "repositories##{action}", should_route "GET /projects/foo/repository/foo/revisions/2457/#{action}/ #{path}" => "repositories##{action}",
:id => 'foo', :repository_id => 'foo', :rev => '2457', :path => path, :format => 'html' :id => 'foo', :repository_id => 'foo', :rev => '2457', :path => path, :format => 'html'
end end
end end
@paths.each do |path|
should_route "GET /projects/foo/repository/foo/revisions/2457/diff/#{path}
" => "repositories#diff",
:id => 'foo', :repository_id => 'foo', :rev => '2457', :path => path
end
end end
def test_repositories_non_revisions_path_with_repository_id def test_repositories_non_revisions_path_with_repository_id
should_route 'GET /projects/foo/repository/svn/changes' => 'repositories#cha nges', :id => 'foo', :repository_id => 'svn', :format => 'html' should_route 'GET /projects/foo/repository/svn/changes' => 'repositories#cha nges', :id => 'foo', :repository_id => 'svn', :format => 'html'
%w(changes diff browse entry raw annotate).each do |action| %w(changes browse entry raw annotate).each do |action|
@paths.each do |path| @paths.each do |path|
should_route "GET /projects/foo/repository/svn/#{action}/#{path}" => "re positories##{action}", should_route "GET /projects/foo/repository/svn/#{action}/#{path}" => "re positories##{action}",
:id => 'foo', :repository_id => 'svn', :path => path, :format => 'html ' :id => 'foo', :repository_id => 'svn', :path => path, :format => 'html '
end end
end end
@paths.each do |path|
should_route "GET /projects/foo/repository/svn/diff/#{path}" => "repositor
ies#diff",
:id => 'foo', :repository_id => 'svn', :path => path
end
end end
def test_repositories_related_issues_with_repository_id def test_repositories_related_issues_with_repository_id
should_route 'POST /projects/foo/repository/svn/revisions/123/issues' => 're positories#add_related_issue', should_route 'POST /projects/foo/repository/svn/revisions/123/issues' => 're positories#add_related_issue',
:id => 'foo', :repository_id => 'svn', :rev => '123' :id => 'foo', :repository_id => 'svn', :rev => '123'
should_route 'DELETE /projects/foo/repository/svn/revisions/123/issues/25' = > 'repositories#remove_related_issue', should_route 'DELETE /projects/foo/repository/svn/revisions/123/issues/25' = > 'repositories#remove_related_issue',
:id => 'foo', :repository_id => 'svn', :rev => '123', :issue_id => '25' :id => 'foo', :repository_id => 'svn', :rev => '123', :issue_id => '25'
end end
end end
 End of changes. 6 change blocks. 
4 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)