1
0

Add GoalController: #index, #new, #create

This commit is contained in:
cryptogopher
2021-02-21 18:10:15 +01:00
parent ea308a1e4a
commit 7f87b3bc84
20 changed files with 182 additions and 76 deletions

View File

@@ -46,7 +46,7 @@ class TargetsTest < BodyTrackingSystemTestCase
click_link t('targets.contextual.link_new_target')
assert_selector 'form#new-target-form', count: 1
within 'form#new-target-form' do
assert has_select?(t(:field_goal), selected: t('targets.form.binding_goal'))
assert has_select?(t(:field_goal), selected: t('goals.binding.name'))
assert has_field?(t(:field_effective_from), with: Date.current)
assert has_no_link?(t('targets.form.button_delete_target'))
end