Sha256: 4c50b423e95e9c120778558b1844362117b96ed77b2b8377a682965302a92c69
Contents?: true
Size: 703 Bytes
Versions: 16
Compression:
Stored size: 703 Bytes
Contents
require 'test_helper' module Vedeu describe Cursors do let(:described) { Vedeu::Cursors } it { described.must_respond_to(:cursors) } describe '.cursor' do subject { Vedeu.cursor } context 'when there are cursors are defined' do before do Vedeu::Focus.add('Vedeu.cursor') Vedeu::Cursor.new(name: 'Vedeu.cursor').store end it { subject.must_be_instance_of(Vedeu::Cursor) } end context 'when there are no cursors defined' do before do Vedeu::Focus.reset Vedeu.cursors.reset end it { subject.must_be_instance_of(NilClass) } end end end # Cursors end # Vedeu
Version data entries
16 entries across 16 versions & 1 rubygems