Added system tests under Redmine 4
This commit is contained in:
27
test/system/targets_test.rb
Normal file
27
test/system/targets_test.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
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)
|
||||
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
|
||||
end
|
||||
Reference in New Issue
Block a user