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