Sha256: 93a33490971245eef2f874fcc86d2f4bc1e7ece492004174aa1b5de47f2163d5
Contents?: true
Size: 789 Bytes
Versions: 29
Compression:
Stored size: 789 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 expect(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
29 entries across 29 versions & 1 rubygems