Sha256: 16edd911e1734bbfe78dc222ad3717c44a15b970458c1d90a4566cf2cbb0a9f3
Contents?: true
Size: 955 Bytes
Versions: 3
Compression:
Stored size: 955 Bytes
Contents
# frozen_string_literal: true require_relative '../../spec_helper' # Use the RSpec framework require_relative '../../../lib/zenlish/wclasses/verb' # Load the class under test module Zenlish module WClasses describe Verb do subject { Verb.new } context 'Initialization:' do it 'should be initialized without argument' do expect { Verb.new }.not_to raise_error end end # context context 'Provided services:' do it 'should know that it has inflected forms' do expect(subject).not_to be_invariable end it 'should know its 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/verb_spec.rb |
zenlish-0.2.02 | spec/zenlish/wclasses/verb_spec.rb |
zenlish-0.2.01 | spec/zenlish/wclasses/verb_spec.rb |