Sha256: 339c875a1ff136e41c5db760d5ac0f9479b38d6f5feab97f0c5fb82bb489a348

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 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 { described_class.new(name, gem) }

  its(:name) { should == name }

  its(:gem) { should == gem }

  its(:enabled) { should be_false }

  its(:gem_name) { should == "tty-#{name}" }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tty-0.0.11 spec/tty/plugins/plugin/new_spec.rb
tty-0.0.10 spec/tty/plugins/plugin/new_spec.rb