Skip to content

Commit

Permalink
Add test to ensure English localization is working.
Browse files Browse the repository at this point in the history
A common mistake for translators is to forget to change the YAML file's
root key from en to their own locale (as people tend to use the English
file as template for a new translation).
  • Loading branch information
kaapa committed Dec 22, 2010
1 parent 410d3db commit ef73d58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/requests/rails_admin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,16 @@
end
end

# A common mistake for translators is to forget to change the YAML file's
# root key from en to their own locale (as people tend to use the English
# file as template for a new translation).
describe "localization" do
it "should default to English" do
get rails_admin_dashboard_path

response.should contain("Site administration")
response.should contain("Dashboard")
end
end

end

0 comments on commit ef73d58

Please sign in to comment.