spec/integration/icon_spec.rb in prawn-icon-1.0.0 vs spec/integration/icon_spec.rb in prawn-icon-1.1.0
- old
+ new
@@ -118,21 +118,21 @@
pdf = create_pdf
icon = pdf.table_icon '<icon>fa-user</icon>', inline_format: true
expect(icon.class).to eq(Hash)
expect(icon[:content]).to eq('<font name="fa"></font>')
- expect(icon[:inline_format]).to be_true
+ expect(icon[:inline_format]).to be true
end
it 'should ignore all other tags' do
pdf = create_pdf
a = ['<b>BOLD</b> <color rgb="0099FF">BLUE</color>', inline_format: true]
icon = pdf.table_icon(*a)
expect(icon.class).to eq(Hash)
expect(icon[:content]).to eq(a[0])
- expect(icon[:inline_format]).to be_true
+ expect(icon[:inline_format]).to be true
end
context 'multiple icons' do
it 'should ignore any text not in an icon tag' do
pdf = create_pdf
@@ -140,10 +140,10 @@
out = '<font name="fa"></font> Some Text <font name="fi"></font>'
icon = pdf.table_icon(*a)
expect(icon.class).to eq(Hash)
expect(icon[:content]).to eq(out)
- expect(icon[:inline_format]).to be_true
+ expect(icon[:inline_format]).to be true
end
end
end
end
end