##// END OF EJS Templates
Removed the "Move" button for single issue since it can be moved from the reguler update form....
Removed the "Move" button for single issue since it can be moved from the reguler update form. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8533 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r6600:fe9d54316ce0
r8413:14267311aac6
Show More
board_test.rb
35 lines | 1.0 KiB | text/x-ruby | RubyLexer
Jean-Baptiste Barth
Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050...
r4395 require File.expand_path('../../test_helper', __FILE__)
Jean-Philippe Lang
Per project forums added....
r526
Eric Davis
Upgraded to Rails 2.3.4 (#3597)...
r2773 class BoardTest < ActiveSupport::TestCase
Jean-Philippe Lang
Fixed: messages attachments/watchers are not deleted when deleting a project or forum (#6966)....
r4317 fixtures :projects, :boards, :messages, :attachments, :watchers
Jean-Philippe Lang
Per project forums added....
r526
def setup
@project = Project.find(1)
end
Toshi MARUYAMA
remove trailing white-spaces from test/unit/board_test.rb....
r6600
Jean-Philippe Lang
Per project forums added....
r526 def test_create
board = Board.new(:project => @project, :name => 'Test board', :description => 'Test board description')
assert board.save
board.reload
assert_equal 'Test board', board.name
assert_equal 'Test board description', board.description
assert_equal @project, board.project
assert_equal 0, board.topics_count
assert_equal 0, board.messages_count
assert_nil board.last_message
# last position
assert_equal @project.boards.size, board.position
end
Toshi MARUYAMA
remove trailing white-spaces from test/unit/board_test.rb....
r6600
Jean-Philippe Lang
Per project forums added....
r526 def test_destroy
board = Board.find(1)
Jean-Philippe Lang
Fixed: messages attachments/watchers are not deleted when deleting a project or forum (#6966)....
r4317 assert_difference 'Message.count', -6 do
assert_difference 'Attachment.count', -1 do
assert_difference 'Watcher.count', -1 do
assert board.destroy
end
end
end
Jean-Philippe Lang
Per project forums added....
r526 assert_equal 0, Message.count(:conditions => {:board_id => 1})
end
end