Sha256: 07657af0552450ae54d17a54a5e817ab0e36ac5722d72f6d8696930a5c9ade22

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

# encoding: utf-8
require 'test_helper'

module Mayl
  module Commands
    describe Edit do
      before do
        @locales = [stub(name: 'ca'), stub(name: 'en')]
        @env     = stub locales: @locales, namespace: '', last_value: 'activerecord.models.post'
        @command = Edit.new @env, 'en', 'Entry'
      end

      it 'edits the last key getted or setted' do
        @locales.last.expects(:set).with('activerecord.models.post', 'Entry')
        @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/edit_test.rb
mayl-0.2.0 test/mayl/commands/edit_test.rb
mayl-0.1.0 test/mayl/commands/edit_test.rb
mayl-0.0.1 test/mayl/commands/edit_test.rb