Sha256: 353731212a2bd4f3189aa0f9297a249696bdf2ac8738b2e80d6b942663a2992c
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
require 'test_helper' module Vedeu describe Move do before do Interfaces.reset Registrar.record({ name: 'thorium' }) Terminal.console.stubs(:print) end context 'when no interfaces are defined' do before { Interfaces.reset } it { proc { Move.down }.must_raise(NoInterfacesDefined) } it { proc { Move.up }.must_raise(NoInterfacesDefined) } it { proc { Move.right }.must_raise(NoInterfacesDefined) } it { proc { Move.left }.must_raise(NoInterfacesDefined) } end context 'when there is at least one interface defined' do before { Focus.stubs(:current).returns('thorium') } it { Move.down.must_be_instance_of(Array) } it { Move.up.must_be_instance_of(Array) } it { Move.right.must_be_instance_of(Array) } it { Move.left.must_be_instance_of(Array) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.2.4 | test/lib/vedeu/support/move_test.rb |