Sha256: 73bbd8ab3779e26af2d565e55ef9e0bbf519d1f63570187a6079cc559d0632aa

Contents?: true

Size: 503 Bytes

Versions: 5

Compression:

Stored size: 503 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY do
  let(:object) { described_class }

  it { expect(object.terminal).to be_instance_of(TTY::Terminal) }

  #it { expect(object.shell).to be_instance_of(TTY::Shell) }

  it { expect(object.system).to be(TTY::System) }

  it { expect(object.plugins).to be_instance_of(TTY::Plugins) }

  context 'when module' do
    it 'decorates class' do
      klass = Class.new { include TTY }
      expect(klass).to respond_to(:terminal)
    end
  end
end # TTY

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tty-0.5.0 spec/tty/tty_spec.rb
tty-0.4.0 spec/tty/tty_spec.rb
tty-0.3.2 spec/tty/tty_spec.rb
tty-0.3.1 spec/tty/tty_spec.rb
tty-0.3.0 spec/tty/tty_spec.rb