Sha256: 85645f5cd45c4c0f3c6ca9309fca7a4b6d66baa17fb9fffd14ccdafa4db5e282
Contents?: true
Size: 717 Bytes
Versions: 7
Compression:
Stored size: 717 Bytes
Contents
require_relative '../../spec_helper' # Load the class under test require_relative '../../../lib/rley/syntax/non_terminal' module Rley # Open this namespace to avoid module qualifier prefixes module Syntax # Open this namespace to avoid module qualifier prefixes describe NonTerminal do let(:sample_name) { 'noun' } subject { NonTerminal.new(sample_name) } context 'Initialization:' do it 'should be created with a name' do expect { NonTerminal.new('noun') }.not_to raise_error end it 'should know its name' do expect(subject.name).to eq(sample_name) end end # context end # describe end # module end # module # End of file
Version data entries
7 entries across 7 versions & 1 rubygems