summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-21 20:54:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-21 20:54:03 +0000
commit3c88dd5041d7b8d30d8d6c5b7b3b511619843abf (patch)
tree14e69acfeb6e5e82d21026fc01ee217531c3cea0
parent8b107b6058257fb44d9ddca7e55d58033cc2b023 (diff)
downloadredmine-3c88dd5041d7b8d30d8d6c5b7b3b511619843abf.tar.gz
redmine-3c88dd5041d7b8d30d8d6c5b7b3b511619843abf.zip
Don't call #slice on association proxy.
git-svn-id: http://svn.redmine.org/redmine/trunk@15732 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/boards_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb
index ce70599be..f395769ec 100644
--- a/test/functional/boards_controller_test.rb
+++ b/test/functional/boards_controller_test.rb
@@ -36,7 +36,7 @@ class BoardsControllerTest < Redmine::ControllerTest
end
def test_index_should_show_messages_if_only_one_board
- Project.find(1).boards.slice(1..-1).each(&:destroy)
+ Project.find(1).boards.to_a.slice(1..-1).each(&:destroy)
get :index, :project_id => 1
assert_response :success