From 88ebeaac7fcf140cbab489e841bf9c197f84c4ea Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 14 Jul 2026 02:17:04 +0200 Subject: Make revisions locale aware --- test/controllers/page_translations_controller_test.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'test') diff --git a/test/controllers/page_translations_controller_test.rb b/test/controllers/page_translations_controller_test.rb index 8c899fd..8fa732f 100644 --- a/test/controllers/page_translations_controller_test.rb +++ b/test/controllers/page_translations_controller_test.rb @@ -1,18 +1,6 @@ require 'test_helper' class PageTranslationsControllerTest < ActionController::TestCase - test "index lists the default locale's existing translation and flags a missing one" do - login_as :quentin - node = Node.root.children.create!(:slug => "translations_index_test") - node.publish_draft! - - get :index, params: { :node_id => node.id } - - assert_response :success - assert_equal [:en], assigns(:translations).map { |t| t[:locale] } - assert_equal false, assigns(:translations).first[:exists] - end - test "update creates a first-time translation on a fresh draft, leaving head untouched" do login_as :quentin node = Node.root.children.create!(:slug => "translations_create_test") -- cgit v1.3