Added is_binding attribute to Goal
Fixed test_index to check for data rows only
This commit is contained in:
@@ -18,11 +18,14 @@ class TargetsTest < BodyTrackingSystemTestCase
|
||||
assert_not_equal 0, @project1.targets.count
|
||||
visit project_targets_path(@project1)
|
||||
assert_current_path project_targets_path(@project1)
|
||||
assert_selector 'table#targets tr', count: @project1.targets.count
|
||||
assert_selector 'table#targets tbody tr', count: @project1.targets.count
|
||||
end
|
||||
|
||||
def test_index_without_targets
|
||||
#assert_equal 0, @project1.targets.count
|
||||
#assert_selector 'div#targets', visible: :yes, exact_text: l(:label_no_data)
|
||||
end
|
||||
|
||||
def test_create_saves_binding_goal_if_nonexistent
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user