Sha256: af4317e8fcee23aeb36d899633ce6f3da2a854da37dbd74925f2056257b72ea3

Contents?: true

Size: 872 Bytes

Versions: 3

Compression:

Stored size: 872 Bytes

Contents

# frozen_string_literal: true

require_relative '../../spec_helper' # Use the RSpec framework

# Load the class under test
require_relative '../../../lib/zenlish/wclasses/lexical_verb' 

module Zenlish
  module WClasses
    describe LexicalVerb do
      subject { LexicalVerb.new }

      context 'Initialization:' do
        it 'should be initialized without argument' do
          expect { LexicalVerb.new }.not_to raise_error
        end
      end # context

      context 'Provided services:' do
        it 'should know its inherited feature definitions' do
          expect(subject['NUMBER']).to be_kind_of(Feature::FeatureDef)
          expect(subject['PERSON']).to be_kind_of(Feature::FeatureDef)
          expect(subject['PARADIGM'].default.val).to eq('Regular_inflection')           
        end
      end # context
    end # describe
  end # module
end # module

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zenlish-0.2.03 spec/zenlish/wclasses/lexical_verb_spec.rb
zenlish-0.2.02 spec/zenlish/wclasses/lexical_verb_spec.rb
zenlish-0.2.01 spec/zenlish/wclasses/lexical_verb_spec.rb