Sha256: 80d18917090688884d412d9cc518e1b8083d22f6a3348951d87229eee4f6bd28
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
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 class LexicalVerb # Do limited monkeypatching, just for testing purposes def init_paradigms # Empty method end end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zenlish-0.2.05 | spec/zenlish/wclasses/lexical_verb_spec.rb |
zenlish-0.2.04 | spec/zenlish/wclasses/lexical_verb_spec.rb |