Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
binarygit committed Jul 25, 2024
1 parent 3160c79 commit 7d6d0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/dummy/app/models/team_membership.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
class TeamMembership < ApplicationRecord
belongs_to :team
belongs_to :user
before_destroy :say_goodbye, if: -> { Rails.env.test? }
before_destroy :raise_test_error, if: -> { Rails.env.test? }

def name
"#{team&.name} - #{user&.name}"
end

private

def say_goodbye
def raise_test_error
raise "Callback Called"
end
end

0 comments on commit 7d6d0e9

Please sign in to comment.