Permalink
Browse files

add test for loading data from a yaml file

  • Loading branch information...
1 parent db6a087 commit f797a5fb7469887b8158f47330b4744a24dcea2c Sven Fuchs committed Aug 13, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 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

0 comments on commit f797a5f

Please sign in to comment.