Sha256: 53dfcd3b8dd4d3e69e697db75e776426f9542a77895207c05ec6eb80171e76b6
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
require 'spec_helper' module SpecI18n module CommandLine describe LanguageHelpFormatter do before(:all) do @languages = SpecI18n::Parser::NaturalLanguage.list_languages @portuguese = SpecI18n::Parser::NaturalLanguage.list_keywords("pt") @io_stream = StringIO.new end it "should list languages" do SpecI18n::Parser::NaturalLanguage.should_receive(:list_languages).and_return(@languages) Kernel.should_receive(:exit) LanguageHelpFormatter.list_languages_and_exit(StringIO.new) end it "should list keywords" do SpecI18n::Parser::NaturalLanguage.should_receive(:list_keywords).and_return(@portuguese) Kernel.should_receive(:exit) LanguageHelpFormatter.list_keywords_and_exit(@io_stream, 'pt') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-i18n-0.2.1 | spec/spec-i18n/command_line/language_help_formatter_spec.rb |
rspec-i18n-0.2.0 | spec/spec-i18n/command_line/language_help_formatter_spec.rb |