Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSebastian Ludwig <sebastian@lurado.de>2016-02-22 18:12:03 +0300
committerSebastian Ludwig <sebastian@lurado.de>2016-02-22 18:12:03 +0300
commit9374fdb40a92c998f6572df45231a8566bc1abb2 (patch)
tree0f00e3b31fbd172cc3760adc610f5e371798a301 /test
parent689ad2cd72c53460770c4bb75a73dfea4985771b (diff)
Converted otherwise unused instance variables to local variables.
Diffstat (limited to 'test')
-rw-r--r--test/test_generate_all_string_files.rb4
-rw-r--r--test/test_generate_string_file.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/test/test_generate_all_string_files.rb b/test/test_generate_all_string_files.rb
index ff0a6c9..4a9b8f3 100644
--- a/test/test_generate_all_string_files.rb
+++ b/test/test_generate_all_string_files.rb
@@ -8,13 +8,13 @@ class TestGenerateAllStringFiles < CommandTestCase
options[:format] = 'apple'
options[:create_folders] = create_folders
- @twine_file = build_twine_file 'en', 'es' do
+ twine_file = build_twine_file 'en', 'es' do
add_section 'Section' do
add_row key: 'value'
end
end
- Twine::Runner.new(options, @twine_file)
+ Twine::Runner.new(options, twine_file)
end
def test_fails_if_output_folder_does_not_exist
diff --git a/test/test_generate_string_file.rb b/test/test_generate_string_file.rb
index cf7b541..aa27eec 100644
--- a/test/test_generate_string_file.rb
+++ b/test/test_generate_string_file.rb
@@ -6,10 +6,10 @@ class TestGenerateStringFile < CommandTestCase
options[:output_path] = File.join(@output_dir, file) if file
options[:languages] = language if language
- @strings = Twine::StringsFile.new
- @strings.language_codes.concat KNOWN_LANGUAGES
+ strings = Twine::StringsFile.new
+ strings.language_codes.concat KNOWN_LANGUAGES
- Twine::Runner.new(options, @strings)
+ Twine::Runner.new(options, strings)
end
def prepare_mock_write_file_formatter(formatter_class)