[#4177] Refactor test logic to helpers.
This commit is contained in:
1 parent
7892c577c8
commit
e9ff951f4e
2 files changed
+19
-11
No files matched your search
@@ -20,6 +20,22 @@ module IntegrationTestHelper
|
||||
assert User.current.logged?
|
||||
end
|
||||
|
||||
def visit_project(project)
|
||||
visit '/'
|
||||
assert_response :success
|
||||
|
||||
click_link 'Projects'
|
||||
assert_response :success
|
||||
|
||||
click_link project.name
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def assert_forbidden
|
||||
assert_response :forbidden
|
||||
assert_template 'common/403'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class ActionController::IntegrationTest
|
||||
|
||||
Reference in new issue
Block a user