Sha256: 4e839c47142fd38e6aa28bb07f96c391ee01a23c64cda81799e50c7b97bab943
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
require 'test_helper' module Vedeu describe Geometries do let(:described) { Vedeu::Geometries } describe '#by_name' do let(:_name) { 'carbon' } subject { described.geometries.by_name(_name) } context 'when the geometry exists' do before do Vedeu.geometry 'carbon' do x 1 xn 3 y 1 yn 3 end end it { subject.must_be_instance_of(Vedeu::Geometry) } end context 'when the geometry does not exist' do let(:_name) { 'nitrogen' } it { subject.must_be_instance_of(Vedeu::Null::Geometry) } end end end # Geometries end # Vedeu
Version data entries
4 entries across 4 versions & 1 rubygems