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