Class: BugTest
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- BugTest
- Includes:
- Rack::Test::Methods
- Defined in:
- lib/bug_report_templates/rails_5_master.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
99 100 101 102 103 104 |
# File 'lib/bug_report_templates/rails_5_master.rb', line 99 def test_admin_root_success? get '/admin' assert last_response.ok? assert_match 'Test Me', last_response.body # has content assert_match 'Your Models', last_response.body # has 'Your Models' in menu end |
#test_admin_your_models ⇒ Object
106 107 108 109 110 111 |
# File 'lib/bug_report_templates/rails_5_master.rb', line 106 def test_admin_your_models YourModel.create! name: 'John Doe' get '/admin/your_models' assert last_response.ok? assert_match 'John Doe', last_response.body # has created row end |