Fix locale location
This commit is contained in:
@@ -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
@@ -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__))
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user