@@ -6,7 +6,7 class BoardTest < ActiveSupport::TestCase | |||
|
6 | 6 | def setup |
|
7 | 7 | @project = Project.find(1) |
|
8 | 8 | end |
|
9 | ||
|
9 | ||
|
10 | 10 | def test_create |
|
11 | 11 | board = Board.new(:project => @project, :name => 'Test board', :description => 'Test board description') |
|
12 | 12 | assert board.save |
@@ -20,7 +20,7 class BoardTest < ActiveSupport::TestCase | |||
|
20 | 20 | # last position |
|
21 | 21 | assert_equal @project.boards.size, board.position |
|
22 | 22 | end |
|
23 | ||
|
23 | ||
|
24 | 24 | def test_destroy |
|
25 | 25 | board = Board.find(1) |
|
26 | 26 | assert_difference 'Message.count', -6 do |
General Comments 0
You need to be logged in to leave comments.
Login now