Completed test_index_without_targets
This commit is contained in:
parent
266794cfe6
commit
13974e5e2f
@ -22,8 +22,11 @@ class TargetsTest < BodyTrackingSystemTestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_index_without_targets
|
def test_index_without_targets
|
||||||
#assert_equal 0, @project1.targets.count
|
@project1.goals.delete_all
|
||||||
#assert_selector 'div#targets', visible: :yes, exact_text: l(:label_no_data)
|
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
|
end
|
||||||
|
|
||||||
def test_create_saves_binding_goal_if_nonexistent
|
def test_create_saves_binding_goal_if_nonexistent
|
||||||
|
Reference in New Issue
Block a user