Sha256: fae8d134251ff1d8f1f1f436b166306d6677f285b3956dcb1d58b2ad1c77016f
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
# encoding: utf-8 require 'test_helper' module Mayl module Commands describe Get do before do @locales = [stub(to_s: 'ca'), stub(to_s: 'en')] @env = stub locales: @locales, namespace: 'activerecord' @command = Get.new @env, 'models.post' end it 'shows the user the values for a key in each locale' do @locales.first.expects(:get).with('activerecord.models.post').returns('Article') @locales.last.expects(:get).with('activerecord.models.post').returns('Post') @command.expects(:print).with(" ca: Article\n") @command.expects(:print).with(" en: Post\n") @command.execute end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mayl-0.2.1 | test/mayl/commands/get_test.rb |
mayl-0.2.0 | test/mayl/commands/get_test.rb |
mayl-0.1.0 | test/mayl/commands/get_test.rb |
mayl-0.0.1 | test/mayl/commands/get_test.rb |