Sha256: 895955a93414a840c7d607d0f339a2b1702052fe1fd0fa1176ba0472866d9089
Contents?: true
Size: 948 Bytes
Versions: 6
Compression:
Stored size: 948 Bytes
Contents
require 'spec_helper' describe Orthotypo do it 'leaves html entities untouched' do expect("test & test".ortho).to eq "test & test" end it 'leaves html tags untouched' do expect("<b>bold</b>".ortho).to eq "<b>bold</b>" end it 'leaves URLs untouched' do expect("https://unsplash.com/@lusvardi?utm_source=osuny".ortho).to eq "https://unsplash.com/@lusvardi?utm_source=osuny" expect("<a href=\"https://unsplash.com/@lusvardi?utm_source=osuny\">https://unsplash.com/@lusvardi?utm_source=osuny</a>".ortho).to eq "<a href=\"https://unsplash.com/@lusvardi?utm_source=osuny\">https://unsplash.com/@lusvardi?utm_source=osuny</a>" end it 'leaves URLs untouched' do expect("prenom.nom@example.com".ortho).to eq "prenom.nom@example.com" expect("<a href=\"mailto:prenom.nom@example.com\">prenom.nom@example.com</a>".ortho).to eq "<a href=\"mailto:prenom.nom@example.com\">prenom.nom@example.com</a>" end end
Version data entries
6 entries across 6 versions & 1 rubygems