Sha256: 48ecc2977a10ab80ba698d12275059ea6deee0a3af8246929265154400f11c60
Contents?: true
Size: 788 Bytes
Versions: 3
Compression:
Stored size: 788 Bytes
Contents
require_relative '../../spec_helper' # Load the class under test require_relative '../../../lib/rley/gfg/start_vertex' module Rley # Open this namespace to avoid module qualifier prefixes module GFG # Open this namespace to avoid module qualifier prefixes describe StartVertex do let(:sample_nt) { double('NT') } subject { StartVertex.new(sample_nt) } context 'Initialization:' do it 'should be created with a non-terminal symbol' do expect { StartVertex.new(sample_nt) }.not_to raise_error end it 'should know its label' do allow(sample_nt).to receive(:to_s).and_return('NT') expect(subject.label).to eq('.NT') end end # context end # describe end # module end # module # End of file
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rley-0.3.01 | spec/rley/gfg/start_vertex_spec.rb |
rley-0.3.00 | spec/rley/gfg/start_vertex_spec.rb |
rley-0.2.15 | spec/rley/gfg/start_vertex_spec.rb |