Sha256: 849dd22c5bb5e0e0eecc68e94e9ed3ffad3f4c17df2687e8c429a7a01607e486

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

require 'test_helper'

module Vedeu

  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

  describe '.cursors' do
    subject { Vedeu.cursors }

    it { subject.must_be_instance_of(Vedeu::Cursors) }
  end

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.3.0 test/lib/vedeu/cursor/all_test.rb