##// END OF EJS Templates
Don't call #slice on association proxy....
Jean-Philippe Lang -
r15350:3c88dd5041d7
parent child
Show More
@@ -36,7 +36,7 class BoardsControllerTest < Redmine::ControllerTest
36 end
36 end
37
37
38 def test_index_should_show_messages_if_only_one_board
38 def test_index_should_show_messages_if_only_one_board
39 Project.find(1).boards.slice(1..-1).each(&:destroy)
39 Project.find(1).boards.to_a.slice(1..-1).each(&:destroy)
40
40
41 get :index, :project_id => 1
41 get :index, :project_id => 1
42 assert_response :success
42 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now