Sha256: 781461d8bf121a1675c6ef8fc3a1db9a0abbf3095a6bc4a8ff54277bd3e562e4
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
# encoding: utf-8 require 'test_helper' module Mayl module Commands describe Ls do before do @locales = [stub(to_s: 'ca'), stub(to_s: 'en')] @env = stub locales: @locales, namespace: 'activerecord' @command = Ls.new @env end it 'prints the current keys inside the namespace' do @env.expects(:peek).returns ['models', 'attributes'] @command.expects(:print).with('models ') @command.expects(:print).with('attributes ') @command.execute end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mayl-0.2.1 | test/mayl/commands/ls_test.rb |
mayl-0.2.0 | test/mayl/commands/ls_test.rb |