Sha256: 630f0862d28836ae1a0154472f4232da25e9f9055d7b5a2dc71dde819bc71b68
Contents?: true
Size: 873 Bytes
Versions: 7
Compression:
Stored size: 873 Bytes
Contents
# frozen_string_literal: true require_relative '../../spec_helper' # Use the RSpec framework require_relative '../../../lib/zenlish/wclasses/noun' # Load the class under test module Zenlish module WClasses describe Noun do subject { Noun.new } context 'Initialization:' do it 'should be initialized without argument' do expect { Noun.new }.not_to raise_error end end # context context 'Provided services:' do it 'should know that it is variable (has inflected forms)' do expect(subject).not_to be_invariable end it 'should know its feature names' do expectations = %w(NUMBER COUNTABILITY) expectations.each do |name| expect(subject[name]).not_to be_nil end end end # context end # describe end # module end # module
Version data entries
7 entries across 7 versions & 1 rubygems