Sha256: 100c78c816bcf1c504f4abe7dae43bf35e0022ca7e86d5902ab23d22bb1ba53e

Contents?: true

Size: 899 Bytes

Versions: 16

Compression:

Stored size: 899 Bytes

Contents

require 'test_helper'

module Vedeu

  module Cursors

    describe Repository do

      let(:described) { Vedeu::Cursors::Repository }

      it { described.must_respond_to(:cursors) }

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

        context 'when there are cursors are defined' do
          before do
            Vedeu::Models::Focus.reset
            Vedeu.cursors.reset
            Vedeu::Models::Focus.add('Vedeu.cursor')
            Vedeu::Cursors::Cursor.store(name: 'Vedeu.cursor')
          end

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

        context 'when there are no cursors defined' do
          before do
            Vedeu::Models::Focus.reset
            Vedeu.cursors.reset
          end

          it { subject.must_be_instance_of(NilClass) }
        end
      end

    end # Repository

  end # Cursors

end # Vedeu

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
vedeu-0.6.32 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.31 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.30 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.29 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.28 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.27 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.26 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.25 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.24 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.23 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.22 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.21 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.20 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.19 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.18 test/lib/vedeu/cursors/repository_test.rb
vedeu-0.6.17 test/lib/vedeu/cursors/repository_test.rb