Sha256: bc8f3950c8d78d43f860fc26347eda838759f498f4f9f2bb5565201727751ca3

Contents?: true

Size: 581 Bytes

Versions: 8

Compression:

Stored size: 581 Bytes

Contents

require 'spec_helper'
require 'simple_commander/methods'

describe SimpleCommander::Methods do
  it 'includes SimpleCommander::UI' do
    expect(subject.ancestors).to include(SimpleCommander::UI)
  end

  it 'includes SimpleCommander::UI::AskForClass' do
    expect(subject.ancestors).to include(SimpleCommander::UI::AskForClass)
  end

  it 'includes SimpleCommander::Delegates' do
    expect(subject.ancestors).to include(SimpleCommander::Delegates)
  end

  it 'does not change the Object ancestors' do
    expect(Object.ancestors).not_to include(SimpleCommander::UI)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_commander-0.6.1 spec/methods_spec.rb
simple_commander-0.6.0 spec/methods_spec.rb
simple_commander-0.5.1 spec/methods_spec.rb
simple_commander-0.5.0 spec/methods_spec.rb
simple_commander-0.4.0 spec/methods_spec.rb
simple_commander-0.3.1 spec/methods_spec.rb
simple_commander-0.3.0 spec/methods_spec.rb
simple_commander-0.1.0 spec/methods_spec.rb