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.3.10 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.09 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.08 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.07 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.06 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.05 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.04 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.01 spec/rley/syntax/grm_symbol_spec.rb
rley-0.3.00 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.15 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.14 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.12 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.11 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.10 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.09 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.08 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.06 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.05 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.04 spec/rley/syntax/grm_symbol_spec.rb
rley-0.2.03 spec/rley/syntax/grm_symbol_spec.rb