1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/test/system/targets_test.rb
cryptogopher 59a14043c8 Added is_binding attribute to Goal
Fixed test_index to check for data rows only
2020-08-18 17:40:46 +02:00

32 lines
747 B
Ruby

require File.expand_path('../../application_system_test_case', __FILE__)
class TargetsTest < BodyTrackingSystemTestCase
def setup
super
@project1 = projects(:projects_001)
log_user 'alice', 'foo'
end
def teardown
logout_user
super
end
def test_index
assert_not_equal 0, @project1.targets.count
visit project_targets_path(@project1)
assert_current_path project_targets_path(@project1)
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