Sha256: ecfb7c496b59a8322a16248aa1e8c9c1629591dfcffcae811b1e11f63e485c40

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

# these tests stink

describe Shellable do
  class ShellTarget
    def thing
      47
    end
  end

  describe '#open_shell' do
    class ShellableTarget < ShellTarget
      include Shellable
    end
    let(:subject) { ShellableTarget.new }

    it 'can open a shell within its own context' do
      expect(subject).to respond_to :open_shell
    end
  end

  describe '::open' do
    let(:target) { ShellTarget.new }

    it 'can open a shell within the context of its argument' do
      expect(described_class).to respond_to :open
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shellable-0.0.3 spec/shellable_spec.rb
shellable-0.0.2 spec/shellable_spec.rb
shellable-0.0.1 spec/shellable_spec.rb