Sha256: b690aa3ab9852cc4d624bf633bc65cdbfaeb0a5b7633890c03c0ad87e2164a98
Contents?: true
Size: 660 Bytes
Versions: 31
Compression:
Stored size: 660 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module Vedeu module Input describe Raw do let(:described) { Vedeu::Input::Raw } let(:instance) { described.new } describe '#initialize' do it { instance.must_be_instance_of(described) } end describe '.read' do let(:keypress) { 'a' } before do Vedeu::Terminal.console.stubs(:getch).returns(keypress) end subject { described.read } it { subject.must_equal(keypress) } end describe '#read' do it { instance.must_respond_to(:read) } end end # Raw end # Input end # Vedeu
Version data entries
31 entries across 31 versions & 1 rubygems