Fix locale location

This commit is contained in:
Dawa Ometto
2022-09-22 01:45:32 +02:00
committed by Dawa Ometto
parent 0098e9187a
commit 5ed777834d
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ jobs:
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Run gollum from Docker
run: |
git clone test/examples/lotr.git lotr.git
RUNNER_TRACKING_ID="" docker run --rm -p 4567:4567 -v lotr.git:/wiki -e CI=true ${{ env.CI_IMAGE }} &
git clone test/examples/lotr.git /tmp/lotr.git
RUNNER_TRACKING_ID="" docker run --rm -p 4567:4567 -v /tmp/lotr.git:/wiki -e CI=true ${{ env.CI_IMAGE }} --mathjax --mermaid &
sleep 10
netstat -lt
- name: Run capybara tests against Dockerized instance
+1 -1
View File
@@ -17,7 +17,7 @@ module Gollum
KEYBINDINGS = ['default', 'vim', 'emacs']
::I18n.available_locales = [:en]
::I18n.load_path = Dir[::File.expand_path("lib/gollum/locales") + "/*.yml"]
::I18n.load_path = Dir[::File.expand_path("../gollum/locales", __FILE__) + "/*.yml"]
def self.assets_path
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
+1 -1
View File
@@ -19,7 +19,7 @@ context 'Localized frontend' do
fill_in('Search', with: 'something-to-return-no-results')
.native
.send_keys(:return)
puts "DEBUG: #{page.text}"
assert_includes page.text,
'Search results for something-to-return-no-results'
assert_includes page.text,