Skip to content

Commit

Permalink
Restore the internalisation settings afterwards
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed May 15, 2024
1 parent bb7e941 commit 45f779b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/homes_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ class HomesControllerTest < ActionController::TestCase
end

test 'Show aliases in search options' do
original_load_path = I18n.load_path
I18n.load_path += Dir[Rails.root.join('test', 'config', 'translation_override.en.yml')]
I18n.backend.load_translations
with_config_values({ isa_json_compliance_enabled: true, solr_enabled: true }) do
Expand Down Expand Up @@ -769,6 +770,8 @@ class HomesControllerTest < ActionController::TestCase
assert_select 'option', text: 'Programmes', count: 0
end
end
I18n.load_path = original_load_path
I18n.backend.load_translations
end

test 'get dataset jsonld from index' do
Expand Down

0 comments on commit 45f779b

Please sign in to comment.