test/mayl/commands/ls_test.rb in mayl-0.1.0 vs test/mayl/commands/ls_test.rb in mayl-0.2.0

- old
+ new

@@ -9,11 +9,10 @@ @env = stub locales: @locales, namespace: 'activerecord' @command = Ls.new @env end it 'prints the current keys inside the namespace' do - @locales.first.expects(:peek).with('activerecord').returns ['models'] - @locales.last.expects(:peek).with('activerecord').returns ['attributes', 'models'] + @env.expects(:peek).returns ['models', 'attributes'] @command.expects(:print).with('models ') @command.expects(:print).with('attributes ') @command.execute