Sha256: 8afeec1a35232e01e6f1969a3aeed30e8139550239fbf1aa3331f901495cc650

Contents?: true

Size: 374 Bytes

Versions: 11

Compression:

Stored size: 374 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY::System::Editor, '#command' do
  let(:editor) { 'vim' }

  subject { described_class }

  context 'when custom command' do
    it 'searches available commands' do
      allow(subject).to receive(:available)
      subject.command(editor)
      expect(subject).to have_received(:available).with(editor)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tty-0.5.0 spec/tty/system/editor/command_spec.rb
tty-0.4.0 spec/tty/system/editor/command_spec.rb
tty-0.3.2 spec/tty/system/editor/command_spec.rb
tty-0.3.1 spec/tty/system/editor/command_spec.rb
tty-0.3.0 spec/tty/system/editor/command_spec.rb
tty-0.2.1 spec/tty/system/editor/command_spec.rb
tty-0.2.0 spec/tty/system/editor/command_spec.rb
tty-0.1.3 spec/tty/system/editor/command_spec.rb
tty-0.1.2 spec/tty/system/editor/command_spec.rb
tty-0.1.1 spec/tty/system/editor/command_spec.rb
tty-0.1.0 spec/tty/system/editor/command_spec.rb