spec/apps/rails/dummy_app.rb in airbrake-8.3.1 vs spec/apps/rails/dummy_app.rb in airbrake-8.3.2
- old
+ new
@@ -28,10 +28,11 @@
config.eager_load = false
routes.append do
get '/' => 'dummy#index'
get '/crash' => 'dummy#crash'
+ get '/breakdown' => 'dummy#breakdown'
get '/notify_airbrake_helper' => 'dummy#notify_airbrake_helper'
get '/notify_airbrake_sync_helper' => 'dummy#notify_airbrake_sync_helper'
get '/active_record_after_commit' => 'dummy#active_record_after_commit'
get '/active_record_after_rollback' => 'dummy#active_record_after_rollback'
get '/active_job' => 'dummy#active_job'
@@ -98,18 +99,24 @@
'dummy/notify_airbrake_sync_helper.html.erb' => 'notify_airbrake_helper_sync',
'dummy/active_record_after_commit.html.erb' => 'active_record_after_commit',
'dummy/active_record_after_rollback.html.erb' => 'active_record_after_rollback',
'dummy/active_job.html.erb' => 'active_job',
'dummy/resque.html.erb' => 'resque',
- 'dummy/delayed_job.html.erb' => 'delayed_job'
+ 'dummy/delayed_job.html.erb' => 'delayed_job',
+ 'dummy/breakdown.html.erb' => 'breakdown'
)
]
def index; end
def crash
Book.create(title: 'book')
raise AirbrakeTestError
+ end
+
+ def breakdown
+ Book.create(title: 'breakdown')
+ Book.all
end
def notify_airbrake_helper
notify_airbrake(AirbrakeTestError.new)
end