summaryrefslogtreecommitdiffstats
path: root/test/functional/boards_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/boards_controller_test.rb')
-rw-r--r--test/functional/boards_controller_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb
index c848b3e1a..03dee9de8 100644
--- a/test/functional/boards_controller_test.rb
+++ b/test/functional/boards_controller_test.rb
@@ -122,6 +122,14 @@ class BoardsControllerTest < ActionController::TestCase
assert_equal 'Testing', Board.find(2).name
end
+ def test_update_position
+ @request.session[:user_id] = 2
+ put :update, :project_id => 1, :id => 2, :board => { :move_to => 'highest'}
+ assert_redirected_to '/projects/ecookbook/settings/boards'
+ board = Board.find(2)
+ assert_equal 1, board.position
+ end
+
def test_update_with_failure
@request.session[:user_id] = 2
put :update, :project_id => 1, :id => 2, :board => { :name => '', :description => 'Testing board update'}