Sha256: e97f3842a3759022a4851687e9b53f90a3636d6efcd7f09e08ae17d5d6111833

Contents?: true

Size: 405 Bytes

Versions: 11

Compression:

Stored size: 405 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY::Plugin, '#new' do
  let(:gem)  { Gem::Specification.new('tty-console', '3.1.3')}
  let(:name) { 'console'}

  subject(:plugin) { described_class.new(name, gem) }

  it { expect(plugin.name).to eq(name) }

  it { expect(plugin.gem).to eq(gem) }

  it { expect(plugin.enabled).to eq(false) }

  it { expect(plugin.gem_name).to eq("tty-#{name}") }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tty-0.5.0 spec/tty/plugins/plugin/new_spec.rb
tty-0.4.0 spec/tty/plugins/plugin/new_spec.rb
tty-0.3.2 spec/tty/plugins/plugin/new_spec.rb
tty-0.3.1 spec/tty/plugins/plugin/new_spec.rb
tty-0.3.0 spec/tty/plugins/plugin/new_spec.rb
tty-0.2.1 spec/tty/plugins/plugin/new_spec.rb
tty-0.2.0 spec/tty/plugins/plugin/new_spec.rb
tty-0.1.3 spec/tty/plugins/plugin/new_spec.rb
tty-0.1.2 spec/tty/plugins/plugin/new_spec.rb
tty-0.1.1 spec/tty/plugins/plugin/new_spec.rb
tty-0.1.0 spec/tty/plugins/plugin/new_spec.rb