From bf93309370e27cd8c32ef113a5fa1fd9c775b24f Mon Sep 17 00:00:00 2001 From: Priit Tamboom Date: Mon, 20 Oct 2014 10:51:43 +0300 Subject: [PATCH 1/3] added lang to robot --- bin/robot | 5 ----- bin/robot-audit | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/robot b/bin/robot index 42b25a827..6f854cc06 100755 --- a/bin/robot +++ b/bin/robot @@ -3,11 +3,6 @@ # Update repo # -# default locations -export LANGUAGE=en_US.UTF-8 -export LANG=en_US.UTF-8 -export LC_ALL=en_US.UTF-8 - # cd to Rails root directory cd "$(dirname "$0")"; cd .. diff --git a/bin/robot-audit b/bin/robot-audit index ccf318ba4..60d938622 100755 --- a/bin/robot-audit +++ b/bin/robot-audit @@ -6,6 +6,11 @@ # fail later set -o pipefail +# default locations +export LANGUAGE=en_US.UTF-8 +export LANG=en_US.UTF-8 +export LC_ALL=en_US.UTF-8 + # cp config/secrets-example.yml config/secrets.yml # create manually config/database.yml From c1f5d0ec007514afffa85b8f855adec06b3994e1 Mon Sep 17 00:00:00 2001 From: Priit Tamboom Date: Mon, 20 Oct 2014 11:01:26 +0300 Subject: [PATCH 2/3] fixed spec --- spec/support/general.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/support/general.rb b/spec/support/general.rb index 3c646e2e4..99de8a409 100644 --- a/spec/support/general.rb +++ b/spec/support/general.rb @@ -14,7 +14,6 @@ module General end end - RSpec.configure do |c| c.include General end From 805cc23481bc85e1a1734e56448f83c3f5c101d6 Mon Sep 17 00:00:00 2001 From: Priit Tamboom Date: Mon, 20 Oct 2014 11:08:39 +0300 Subject: [PATCH 3/3] added rails env for robot --- bin/robot-audit | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/robot-audit b/bin/robot-audit index 60d938622..e71fc57f8 100755 --- a/bin/robot-audit +++ b/bin/robot-audit @@ -10,6 +10,7 @@ set -o pipefail export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 +export RAILS_ENV=test # cp config/secrets-example.yml config/secrets.yml # create manually config/database.yml