Class: BugTest
- Inherits:
-
ActionDispatch::IntegrationTest
- Object
- ActionDispatch::IntegrationTest
- BugTest
- Defined in:
- lib/bug_report_templates/active_admin_main.rb
Overview
Replace this with the code necessary to make your test fail.
Instance Method Summary collapse
Instance Method Details
#test_admin_root_success? ⇒ Boolean
91 92 93 94 95 96 |
# File 'lib/bug_report_templates/active_admin_main.rb', line 91 def test_admin_root_success? get admin_root_url assert_response :success assert_match 'Test Me', response.body # has content assert_match 'Users', response.body # has 'Your Models' in menu end |
#test_admin_users ⇒ Object
98 99 100 101 102 103 |
# File 'lib/bug_report_templates/active_admin_main.rb', line 98 def test_admin_users User.create! full_name: 'John Doe' get admin_users_url assert_response :success assert_match 'John Doe', response.body # has created row end |