Skip to content

Commit

Permalink
Added test for csv2android with region
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelfrari committed Nov 7, 2019
1 parent d0eec7d commit 860677e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/babelish/commands/test_command_csv2android.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ def test_csv2android_with_multiple_2_languages
system("rm -rf ./values-fr/")
end

def test_csv2android_with_multiple_2_languages_with_region
options = {
:filename => "test/data/test_data_multiple_langs.csv",
:langs => {"English" => "en-US", "French" => "fr"}
}
Commandline.new([], options).csv2android

assert File.exist?("./values-en-rUS/strings.xml")
assert File.exist?("./values-fr/strings.xml")

# clean up
system("rm -rf ./values-en-rUS/")
system("rm -rf ./values-fr/")
end

def test_csv2android_with_output_dir
options = {
:filename => "test/data/test_data_multiple_langs.csv",
Expand Down

0 comments on commit 860677e

Please sign in to comment.