Skip to content

Commit

Permalink
trying to replace raise_error
Browse files Browse the repository at this point in the history
  • Loading branch information
lexahu committed Jul 3, 2024
1 parent 8530147 commit af3d4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/dummy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class NotesController < ActionController::Base
include JSONAPI::Deserialization

def update
raise_error if params[:id] == 'tada'
raise StandardError.new if params[:id] == 'tada'

note = Note.find(params[:id])

Expand Down

0 comments on commit af3d4ee

Please sign in to comment.