Sha256: f022a967eeac23883fe8fa64677d0f55f8ce16744dc904885fbc1f0c7ffd1f9a
Contents?: true
Size: 762 Bytes
Versions: 8
Compression:
Stored size: 762 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.reset Vedeu.cursors.reset 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
8 entries across 8 versions & 1 rubygems