From: Jozef Zigmund <jzigmund(a)redhat.com>
---
src/config/locales/cs.yml | 3 +--
src/features/step_definitions/authentication.rb | 1 +
src/features/step_definitions/web_steps.rb | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/config/locales/cs.yml b/src/config/locales/cs.yml
index ecd52f8..a454563 100644
--- a/src/config/locales/cs.yml
+++ b/src/config/locales/cs.yml
@@ -1,5 +1,4 @@
----
-en:
+cs:
deployments:
list:
delete_selected: bbicho dkockfdi
diff --git a/src/features/step_definitions/authentication.rb
b/src/features/step_definitions/authentication.rb
index a8e112a..e337e31 100644
--- a/src/features/step_definitions/authentication.rb
+++ b/src/features/step_definitions/authentication.rb
@@ -44,6 +44,7 @@ Given /^I am a new user$/ do
end
Given /^I am logged in$/ do
+ page.driver.header 'Accept-Language', 'en-US'
login(user.login, user.password)
page.should have_content('Login successful!')
end
diff --git a/src/features/step_definitions/web_steps.rb
b/src/features/step_definitions/web_steps.rb
index d79b63b..18cbfaa 100644
--- a/src/features/step_definitions/web_steps.rb
+++ b/src/features/step_definitions/web_steps.rb
@@ -42,6 +42,7 @@ When /^(.*) within (.*[^:]):$/ do |step, parent, table_or_string|
end
Given /^(?:|I )am on (.+)$/ do |page_name|
+ page.driver.header 'Accept-Language', 'en-US'
visit path_to(page_name)
end
--
1.7.6.4