Add GoalController: #index, #new, #create
This commit is contained in:
3
test/fixtures/goals.yml
vendored
3
test/fixtures/goals.yml
vendored
@@ -1,7 +1,8 @@
|
||||
goals_binding:
|
||||
project_id: 1
|
||||
is_binding: true
|
||||
name: "<%= I18n.t 'targets.form.binding_goal' %>"
|
||||
name: "<%= I18n.t 'goals.binding.name' %>"
|
||||
description: "<%= I18n.t 'goals.binding.description' %>"
|
||||
|
||||
goals_non_binding:
|
||||
project_id: 1
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user