summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-20 01:09:38 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-20 01:09:38 +0000
commit8a5015178069aad86d5717fa4b7b806bd5a97ad8 (patch)
tree6ca049df074b06c7c317cc95c7ceaadfd58fc775 /test
parent88bd76b0e49485fd0f34decb51ea2f0d6c8a129c (diff)
downloadredmine-8a5015178069aad86d5717fa4b7b806bd5a97ad8.tar.gz
redmine-8a5015178069aad86d5717fa4b7b806bd5a97ad8.zip
Added a test to ensure 'Project' column can be removed on issues list (#8411)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6099 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index be9ca2f04..eddb5493c 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -267,6 +267,12 @@ class IssuesControllerTest < ActionController::TestCase
assert_kind_of Hash, session[:query]
assert_kind_of Array, session[:query][:column_names]
assert_equal columns, session[:query][:column_names].map(&:to_s)
+
+ # ensure only these columns are kept in the selected columns list
+ assert_tag :tag => 'select', :attributes => { :id => 'selected_columns' },
+ :children => { :count => 3 }
+ assert_no_tag :tag => 'option', :attributes => { :value => 'project' },
+ :parent => { :tag => 'select', :attributes => { :id => "selected_columns" } }
end
def test_index_with_custom_field_column