diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-02 17:43:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-02 17:43:36 +0000 |
commit | 3dc73dcb88473139bdf9f2a3b95c5b2f9df8875f (patch) | |
tree | 3bad611caf98616413dde8dd106d2fa81ffd9699 /test/functional/issues_controller_test.rb | |
parent | b13f85e456bba57e5d7079eb00cb594aab60406b (diff) | |
download | redmine-3dc73dcb88473139bdf9f2a3b95c5b2f9df8875f.tar.gz redmine-3dc73dcb88473139bdf9f2a3b95c5b2f9df8875f.zip |
Fixed: associated changesets from other projects are not visible if the current project doesn't have the repository module enabled (#3087).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8749 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index a41340ae6..eb75f073d 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -41,7 +41,9 @@ class IssuesControllerTest < ActionController::TestCase :time_entries, :journals, :journal_details, - :queries + :queries, + :repositories, + :changesets include Redmine::I18n @@ -1074,6 +1076,18 @@ class IssuesControllerTest < ActionController::TestCase assert_no_tag 'a', :content => /Next/ end + def test_show_should_display_visible_changesets_from_other_projects + project = Project.find(2) + issue = project.issues.first + issue.changeset_ids = [102] + issue.save! + project.disable_module! :repository + + @request.session[:user_id] = 2 + get :show, :id => issue.id + assert_tag 'a', :attributes => {:href => "/projects/ecookbook/repository/revisions/3"} + end + def test_show_with_multi_custom_field field = CustomField.find(1) field.update_attribute :multiple, true |