Skip to content

Commit

Permalink
removes business logic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bramleyjl committed Feb 17, 2025
1 parent daef2ea commit 5482b9c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/models/user_action_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ class UserActionEvent < ApplicationRecord
has_many :user_actions, dependent: :restrict_with_exception

validates :details, presence: true
validates :event_id, presence: true
validates :event_type, presence: true
end
2 changes: 0 additions & 2 deletions spec/factories/user_action_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
FactoryBot.define do
factory :user_action_event do
details { Faker::Lorem.sentence }
event_id { 'test_event' }
event_type { 1 }
end
end
2 changes: 0 additions & 2 deletions spec/models/user_action_event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
RSpec.describe UserActionEvent, type: :model do
describe 'validations' do
it { is_expected.to validate_presence_of(:details) }
it { is_expected.to validate_presence_of(:event_id) }
it { is_expected.to validate_presence_of(:event_type) }
end

describe 'associations' do
Expand Down

0 comments on commit 5482b9c

Please sign in to comment.