Sha256: 8574d3e8b6e2f4f35a43b5258a175672b0ef8ef82b00e23a9fcf01a5d50522ed

Contents?: true

Size: 655 Bytes

Versions: 15

Compression:

Stored size: 655 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Cursors do

    let(:described) { Vedeu::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

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.4.40 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.39 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.38 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.37 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.36 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.35 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.34 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.33 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.32 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.31 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.30 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.29 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.28 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.27 test/lib/vedeu/repositories/repositories/cursors_test.rb
vedeu-0.4.26 test/lib/vedeu/repositories/repositories/cursors_test.rb