From 65622a52e1aa8d67086975e889b9cbd71fd1834d Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 3 Jun 2026 09:22:01 -0400 Subject: [PATCH] Exercise more of `rule_translations/_rule_translation` partial (#39266) --- spec/system/auth/registrations_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/system/auth/registrations_spec.rb b/spec/system/auth/registrations_spec.rb index 04ad77f819..e3b5683aa0 100644 --- a/spec/system/auth/registrations_spec.rb +++ b/spec/system/auth/registrations_spec.rb @@ -5,12 +5,14 @@ require 'rails_helper' RSpec.describe 'Auth Registration' do context 'when there are server rules' do let!(:rule) { Fabricate :rule, text: 'You must be seven meters tall' } + let!(:rule_translation) { Fabricate :rule_translation, rule:, hint: 'Rule translation hint', text: rule.text } it 'shows rules page before proceeding with sign up' do visit new_user_registration_path expect(page) .to have_title(I18n.t('auth.register')) .and have_text(rule.text) + .and have_text(rule_translation.hint) end end