summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 02:39:55 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 02:39:55 +0200
commitb4f850e97aeb12369399d8e1ab354f66d3b88e40 (patch)
treea4936218a3e8df5525150d12ed4b94c077befd6f /test/test_helper.rb
parente7d5d0b2c32b172ecdaa80555bf5804043fd87a0 (diff)
Stage 6 click-testing fixes and production setup
- file_attachment.rb: delete old upload directory before writing replacement files; fixes orphaned variants when filename or mime type changes - assets/edit.html.erb: add file upload field and current file display; the form was previously empty and non-functional - admin.css: fix button_to hover styling; buttons now show orange hover to signal interactivity - test/controllers/users_controller_test.rb: assert input[type=submit] not anchor tag for destroy action (button_to change) - test/test_helper.rb: add I18n.locale reset in setup block - doc/rc.d_cccms: fix cccms_chdir, add start_precmd for log/pid dirs, PATH export for bash wrapper, user/pid/tcp_nopush unicorn fixes - doc/INSTALL.md: new installation guide covering all non-obvious steps - Remove parked search migration from doc/ (now in db/migrate/)
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index e7b15da..d438bb5 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -47,6 +47,10 @@ class ActiveSupport::TestCase
47 47
48 # Add more helper methods to be used by all tests here... 48 # Add more helper methods to be used by all tests here...
49 49
50 setup do
51 I18n.locale = I18n.default_locale
52 end
53
50 def create_node_with_published_page 54 def create_node_with_published_page
51 node = create_node_with_draft 55 node = create_node_with_draft
52 draft = node.draft 56 draft = node.draft