0
0
Fork 0

Add coverage for model normalizations (#31734)

This commit is contained in:
Matt Jankowski 2024-09-04 01:12:40 -04:00 committed by GitHub
parent 9ed1aab9b7
commit 14af5b47ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 70 additions and 63 deletions

View file

@ -29,10 +29,8 @@ RSpec.describe Webhook do
end
describe 'Normalizations' do
it 'cleans up events values' do
record = described_class.new(events: ['account.approved', 'account.created ', ''])
expect(record.events).to eq(%w(account.approved account.created))
describe 'events' do
it { is_expected.to normalize(:events).from(['account.approved', 'account.created ', '']).to(%w(account.approved account.created)) }
end
end