spec/licensee/license_field_spec.rb in licensee-9.9.4 vs spec/licensee/license_field_spec.rb in licensee-9.10.0
- old
+ new
@@ -77,9 +77,14 @@
it 'returns the label for #to_s' do
field = described_class.new('foo', 'bar')
expect(field.to_s).to eql('Foo')
end
+ it 'returns the raw text' do
+ field = described_class.new('fullname')
+ expect(field.raw_text).to eql('[fullname]')
+ end
+
context 'spec_helper' do
it 'substitutes all fields' do
expected = described_class.keys.sort
expect(field_values.keys.map(&:to_s).sort).to eql(expected)
end