Test pass: test_index_binding_targets
This commit is contained in:
parent
bbe82aa715
commit
115434fa0e
@ -7,10 +7,11 @@ class TargetsTest < BodyTrackingSystemTestCase
|
|||||||
log_user 'jsmith', 'jsmith'
|
log_user 'jsmith', 'jsmith'
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_index
|
def test_index_binding_targets
|
||||||
assert_not_equal 0, @project1.targets.count
|
goal = @project1.goals.binding
|
||||||
visit project_targets_path(@project1)
|
assert_not_equal 0, goal.targets.count
|
||||||
assert_selector 'table#targets tbody tr', count: @project1.targets.count
|
visit goal_targets_path(goal)
|
||||||
|
assert_selector 'table#targets tbody tr', count: goal.targets.count
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_index_without_targets
|
def test_index_without_targets
|
||||||
|
Reference in New Issue
Block a user