mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Add coverage for model normalizations (#31734)
This commit is contained in:
11
spec/models/relay_spec.rb
Normal file
11
spec/models/relay_spec.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Relay do
|
||||
describe 'Normalizations' do
|
||||
describe 'inbox_url' do
|
||||
it { is_expected.to normalize(:inbox_url).from(' http://host.example ').to('http://host.example') }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user