File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def self.authors
68
68
end
69
69
70
70
def self . is_supported? ( platform )
71
- platform == :ios
71
+ [ :ios , :mac ] . include? platform
72
72
end
73
73
end
74
74
end
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def file_encoding(path)
52
52
output_file = File . join ( tmp_dir , 'output.strings' )
53
53
described_class . merge_strings ( paths : paths , output_path : output_file )
54
54
expect ( File . read ( output_file ) ) . to eq ( File . read ( fixture ( 'expected-merged.strings' ) ) )
55
+ expect ( file_encoding ( output_file ) ) . to eq ( Encoding ::UTF_8 )
55
56
end
56
57
end
57
58
@@ -85,7 +86,7 @@ def file_encoding(path)
85
86
end
86
87
end
87
88
88
- it 'raises if one of the strings file does not exist' do
89
+ it 'raises if any of the strings file does not exist' do
89
90
paths = [ fixture ( 'Localizable-utf16.strings' ) , '/these/are/not/the/droids/you/are/looking/for' ]
90
91
Dir . mktmpdir ( 'a8c-release-toolkit-l10n-helper-tests-' ) do |tmp_dir |
91
92
output_file = File . join ( tmp_dir , 'output.strings' )
@@ -138,8 +139,8 @@ def file_encoding(path)
138
139
end
139
140
end
140
141
141
- # Reads non-latin content from UTF-16BE file and generating output file as UTF8
142
- it 'handles non-latin , Unicode content properly' do
142
+ # Reads non-latin content from UTF-16BE file and generates output file as UTF8
143
+ it 'handles non-Latin , Unicode content properly' do
143
144
non_latin_fixture = fixture ( 'non-latin-utf16.strings' )
144
145
expected_file = fixture ( 'expected-generated-non-latin.strings' )
145
146
You can’t perform that action at this time.
0 commit comments