From 3c88dd5041d7b8d30d8d6c5b7b3b511619843abf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 21 Jul 2016 20:54:03 +0000 Subject: Don't call #slice on association proxy. git-svn-id: http://svn.redmine.org/redmine/trunk@15732 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/boards_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3