Sha256: 720e1610b130734c1fa0c95c2e488602ed2104ea1aa070dd85b0ce22e77fd1c9

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

require_relative '../../../test_helper'

module Vedeu
  describe Input do
    let(:described_class) { Input }
    let(:input)           { "" }
    let(:subject)         { described_class.new }

    before { Terminal.stubs(:input).returns(input) }

    it 'return an Input instance' do
      subject.must_be_instance_of(Input)
    end

    describe '.capture' do
      let(:subject) { described_class.capture }

      it 'returns an Array' do
        subject.must_be_instance_of(Array)
      end

      it 'returns the entered characters' do
        subject.wont_be_empty
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.0.18 test/lib/vedeu/input/input_test.rb
vedeu-0.0.17 test/lib/vedeu/process/input_test.rb
vedeu-0.0.16 test/lib/vedeu/process/input_test.rb
vedeu-0.0.15 test/lib/vedeu/process/input_test.rb