Skip to content
Browse files

[#39] Select the blurbs locale by default.

* Do not use the projects default locale which can be misleading.
  • Loading branch information...
1 parent 64ed343 commit af6b6d3a776c856f7607da798adda520c05ed9da @patricksrobertson patricksrobertson committed Mar 18, 2012
Showing with 9 additions and 1 deletion.
  1. +1 −1 app/controllers/versions_controller.rb
  2. +8 −0 features/translate_blurb.feature
View
2 app/controllers/versions_controller.rb
@@ -21,6 +21,6 @@ def new
@localization = Localization.find(params[:localization_id])
@version = @localization.revise
@project = @localization.project
- @locale = @project.locale
+ @locale = @project.locale(@localization.locale_id)
end
end
View
8 features/translate_blurb.feature
@@ -40,3 +40,11 @@ Feature: translate blurbs
When I follow "Locale: en"
And I follow "es"
Then the "Content" field should contain "hola"
+
+ Scenario: While editing blurbs, the correct locale should be selected
+ When I follow "View all"
+ And I follow "one"
+ Then the "en" locale should be selected
+ When I follow "Locale: en"
+ And I follow "es"
+ Then the "es" locale should be selected

0 comments on commit af6b6d3

Please sign in to comment.
Something went wrong with that request. Please try again.