1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-09 17:11:32 +00:00

Don't call #slice on association proxy.

git-svn-id: http://svn.redmine.org/redmine/trunk@15732 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-07-21 20:54:03 +00:00
parent 8b107b6058
commit 3c88dd5041

View File

@ -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