Fix tests
This commit is contained in:
parent
fbf6923835
commit
6e1a17281d
22 changed files with 235 additions and 13 deletions
|
|
@ -4,6 +4,14 @@ require "application_system_test_case"
|
|||
|
||||
module Admin
|
||||
class BackupsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
login_test
|
||||
end
|
||||
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
test "should create backup" do
|
||||
visit admin_backup_url
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ require "application_system_test_case"
|
|||
class ChecklistsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@checklist = checklists(:one)
|
||||
login_test
|
||||
end
|
||||
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ class ChecksTest < ApplicationSystemTestCase
|
|||
setup do
|
||||
@check = checks(:one)
|
||||
@deletable_check = checks(:deletable)
|
||||
login_test
|
||||
end
|
||||
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ require "application_system_test_case"
|
|||
class ElementsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@element = elements(:one)
|
||||
login_test
|
||||
end
|
||||
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ require "application_system_test_case"
|
|||
class LinkCategoriesTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@link_category = link_categories(:one)
|
||||
login_test
|
||||
end
|
||||
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ require "application_system_test_case"
|
|||
class LinksTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@link = links(:one)
|
||||
login_test
|
||||
end
|
||||
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ require "application_system_test_case"
|
|||
class ReportsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@report = reports(:one)
|
||||
login_test
|
||||
end
|
||||
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
|
|
@ -33,7 +38,7 @@ class ReportsTest < ApplicationSystemTestCase
|
|||
test "should destroy Report" do
|
||||
visit report_url(@report)
|
||||
click_on "Prüfbericht löschen", match: :first
|
||||
|
||||
assert_text("Report was successfully destroyed")
|
||||
assert(Report.exists?(@report.id) == false)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,8 +3,13 @@
|
|||
require "application_system_test_case"
|
||||
|
||||
class SuccessCriteriaTest < ApplicationSystemTestCase
|
||||
teardown do
|
||||
logout
|
||||
end
|
||||
|
||||
setup do
|
||||
@success_criterion = success_criteria(:one)
|
||||
login_test
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue