1
0

domain_allow_spec.rb 373 B

123456789101112131415
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe DomainAllow do
  4. describe 'Validations' do
  5. it { is_expected.to validate_presence_of(:domain) }
  6. context 'when a normalized domain exists' do
  7. before { Fabricate(:domain_allow, domain: 'にゃん') }
  8. it { is_expected.to_not allow_value('xn--r9j5b5b').for(:domain) }
  9. end
  10. end
  11. end