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