Sha256: 98f6c92b48aca2a3952cc73ca99e2511437a8da44d36714bdf4ae2551c1ad0f6

Contents?: true

Size: 763 Bytes

Versions: 8

Compression:

Stored size: 763 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Borders do

    let(:described) { Vedeu::Borders }

    describe '.borders' do
      subject { described.borders }

      it { subject.must_be_instance_of(described) }
    end

    describe '#by_name' do
      let(:_name) { 'carbon' }

      subject { described.borders.by_name(_name) }

      context 'when the border exists' do
        before do
          Vedeu.border 'carbon' do
          end
        end
        after { Vedeu.borders.reset }

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

      context 'when the border does not exist' do
        let(:_name) { 'nitrogen' }

        it { subject.must_be_instance_of(Vedeu::Null::Border) }
      end
    end

  end # Borders

end # Vedeu

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vedeu-0.4.25 test/lib/vedeu/repositories/repositories/borders_test.rb
vedeu-0.4.24 test/lib/vedeu/repositories/repositories/borders_test.rb
vedeu-0.4.23 test/lib/vedeu/repositories/repositories/borders_test.rb
vedeu-0.4.22 test/lib/vedeu/repositories/repositories/borders_test.rb
vedeu-0.4.21 test/lib/vedeu/repositories/repositories/borders_test.rb
vedeu-0.4.20 test/lib/vedeu/repositories/repositories/borders_test.rb
vedeu-0.4.19 test/lib/vedeu/repositories/repositories/borders_test.rb
vedeu-0.4.18 test/lib/vedeu/repositories/repositories/borders_test.rb