blob: 8bac0a52a692f7410303d782aead292c6a5d5577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'command_test_case'
class TestConsumeLocDrop < CommandTestCase
def setup
super
options = {}
options[:input_path] = fixture 'consume_loc_drop.zip'
options[:output_path] = @output_path
options[:format] = 'apple'
@twine_file = build_twine_file 'en', 'es' do
add_section 'Section' do
add_row key1: 'value1'
end
end
@runner = Twine::Runner.new(options, @twine_file)
end
def test_consumes_zip_file
@runner.consume_loc_drop
assert @twine_file.strings_map['key1'].translations['en'], 'value1-english'
assert @twine_file.strings_map['key1'].translations['es'], 'value1-spanish'
end
end
|