Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add test for loading data from a yaml file

  • Loading branch information...
commit f797a5fb7469887b8158f47330b4744a24dcea2c 1 parent db6a087
@svenfuchs authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/simple_backend_test.rb
View
5 test/simple_backend_test.rb
@@ -452,6 +452,11 @@ def test_load_translations_loads_from_different_file_formats
result = @backend.send :class_variable_get, :@@translations
assert_equal expected, result
end
+
+ def test_load_rb_loads_data_from_yaml_file
+ data = @backend.send :load_yml, "#{@locale_dir}/test.yml"
+ assert_equal({'en-US-Yaml' => {'foo' => {'bar' => 'baz'}}}, data)
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.