class BugTest

Replace this with the code necessary to make your test fail.

Public Instance Methods

test_admin_root_success?() click to toggle source
# File lib/bug_report_templates/active_admin_master.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() click to toggle source
# File lib/bug_report_templates/active_admin_master.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

Private Instance Methods

app() click to toggle source
# File lib/bug_report_templates/active_admin_master.rb, line 107
def app
  Rails.application
end