spec/rley/syntax/symbol_seq_spec.rb in rley-0.5.10 vs spec/rley/syntax/symbol_seq_spec.rb in rley-0.5.11
- old
+ new
@@ -59,9 +59,14 @@
it 'should complain when unable to compare' do
err = StandardError
msg = 'Cannot compare a SymbolSeq with a String'
expect { subject == 'dummy-text' }.to raise_error(err, msg)
end
+
+ it 'should provide human-readable representation of itself' do
+ suffix = /::SymbolSeq:\d+ @members=\["Verb", "NP", "PP"\]>$/
+ expect(subject.inspect).to match(suffix)
+ end
end # context
end # describe
end # module
end # module