This repository has been archived on 2025-03-22. You can view files and clone it, but cannot push or open issues or pull requests.
twine/test/command_test_case.rb

19 lines
469 B
Ruby

require 'twine_test_case'
class CommandTestCase < TwineTestCase
def prepare_mock_formatter(formatter_class)
formatter = formatter_class.new(@mock_strings, {})
formatter_class.stubs(:new).returns(formatter)
formatter
end
def setup
super
@known_languages = %w(en fr de es)
@mock_strings = Twine::StringsFile.new
@mock_strings.language_codes.concat @known_languages
Twine::StringsFile.stubs(:new).returns(@mock_strings)
end
end