1
0

Completed test_index_without_targets

This commit is contained in:
cryptogopher 2020-08-18 21:49:12 +02:00
parent 266794cfe6
commit 13974e5e2f

View File

@ -22,8 +22,11 @@ class TargetsTest < BodyTrackingSystemTestCase
end
def test_index_without_targets
#assert_equal 0, @project1.targets.count
#assert_selector 'div#targets', visible: :yes, exact_text: l(:label_no_data)
@project1.goals.delete_all
assert_equal 0, @project1.targets.count
visit project_targets_path(@project1)
assert_current_path project_targets_path(@project1)
assert_selector 'div#targets', visible: :yes, exact_text: t(:label_no_data)
end
def test_create_saves_binding_goal_if_nonexistent