From 115434fa0e268f823496ef5f6ec677d629ddbc1d Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Sun, 7 Mar 2021 15:17:29 +0100 Subject: [PATCH] Test pass: test_index_binding_targets --- test/system/targets_test.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/system/targets_test.rb b/test/system/targets_test.rb index f6d51ea..b421e3a 100644 --- a/test/system/targets_test.rb +++ b/test/system/targets_test.rb @@ -7,10 +7,11 @@ class TargetsTest < BodyTrackingSystemTestCase log_user 'jsmith', 'jsmith' end - def test_index - assert_not_equal 0, @project1.targets.count - visit project_targets_path(@project1) - assert_selector 'table#targets tbody tr', count: @project1.targets.count + def test_index_binding_targets + goal = @project1.goals.binding + assert_not_equal 0, goal.targets.count + visit goal_targets_path(goal) + assert_selector 'table#targets tbody tr', count: goal.targets.count end def test_index_without_targets