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

Version Path
vedeu-0.6.4 test/lib/vedeu/cursor/cursors_test.rb
vedeu-0.6.3 test/lib/vedeu/cursor/cursors_test.rb
vedeu-0.6.2 test/lib/vedeu/cursor/cursors_test.rb
vedeu-0.6.1 test/lib/vedeu/cursor/cursors_test.rb
vedeu-0.6.0 test/lib/vedeu/cursor/cursors_test.rb
vedeu-0.5.13 test/lib/vedeu/cursor/cursors_test.rb
vedeu-0.5.12 test/lib/vedeu/cursor/cursors_test.rb
vedeu-0.5.11 test/lib/vedeu/cursor/cursors_test.rb