spec/zenlish/wclasses/verb_spec.rb in zenlish-0.2.00 vs spec/zenlish/wclasses/verb_spec.rb in zenlish-0.2.01
- old
+ new
@@ -13,11 +13,17 @@
expect { Verb.new }.not_to raise_error
end
end # context
context 'Provided services:' do
- it 'should know that it it is variable (has inflected forms)' 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