Sha256: a6108e302dd65e846e474cd01a653b08e43a90273331b993db932938eabdd7a4

Contents?: true

Size: 883 Bytes

Versions: 67

Compression:

Stored size: 883 Bytes

Contents

require_relative '../../spec_helper'

# Load the class under test
require_relative '../../../lib/rley/syntax/grm_symbol'

module Rley # Open this namespace to avoid module qualifier prefixes
  module Syntax # Open this namespace to avoid module qualifier prefixes
    describe GrmSymbol do
      let(:sample_name) { 'NP' }
      subject { GrmSymbol.new(sample_name) }

      context 'Initialization:' do
        it 'should be created with a name' do
          expect { GrmSymbol.new('NP') }.not_to raise_error
        end

        it 'should know its name' do
          expect(subject.name).to eq(sample_name)
        end
      end # context
      
      context 'Provided services:' do
        it 'should give its text representation' do
          expect(subject.to_s).to eq(sample_name)
        end
      end # context
    end # describe
  end # module
end # module

# End of file

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
rley-0.7.03 spec/rley/syntax/grm_symbol_spec.rb
rley-0.7.02 spec/rley/syntax/grm_symbol_spec.rb
rley-0.7.01 spec/rley/syntax/grm_symbol_spec.rb
rley-0.7.00 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.09 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.08 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.07 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.06 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.05 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.04 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.03 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.02 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.01 spec/rley/syntax/grm_symbol_spec.rb
rley-0.6.00 spec/rley/syntax/grm_symbol_spec.rb
rley-0.5.14 spec/rley/syntax/grm_symbol_spec.rb
rley-0.5.13 spec/rley/syntax/grm_symbol_spec.rb
rley-0.5.12 spec/rley/syntax/grm_symbol_spec.rb
rley-0.5.11 spec/rley/syntax/grm_symbol_spec.rb
rley-0.5.10 spec/rley/syntax/grm_symbol_spec.rb
rley-0.5.09 spec/rley/syntax/grm_symbol_spec.rb