1
0

Fix targets#create

This commit is contained in:
cryptogopher
2021-03-07 15:07:45 +01:00
parent 406eabaccc
commit 5b73e9e7fd
11 changed files with 33 additions and 40 deletions

View File

@@ -63,7 +63,7 @@ class TargetsTest < BodyTrackingSystemTestCase
def test_create_binding_target
assert_difference 'Goal.count' => 0, 'Target.count' => 1,
'@project1.targets.reload.count' => 1, 'Threshold.count' => 1 do
visit project_targets_path(@project1)
visit goal_targets_path(@project1.goals.binding)
click_link t('targets.contextual.link_new_target')
within 'form#new-target-form' do
within 'p.target' do