Sha256: cf773bc893bcb2926e25cb2628702b2436a8c37ac54d0d2137f994a27aaf16dc
Contents?: true
Size: 423 Bytes
Versions: 7
Compression:
Stored size: 423 Bytes
Contents
# encoding: utf-8 require 'fedux_org_stdlib/core_ext/string/transliterate' RSpec.describe String do context '#transliterate' do it 'removes accents' do expect('á'.transliterate).to eq 'a' end it 'removes umlauts' do expect('ä'.transliterate).to eq 'a' end it 'removes special characters "§$%&/()=?!\t' do expect(%('°^!"§$%&/()=?!\t).transliterate).to eq '' end end end
Version data entries
7 entries across 7 versions & 1 rubygems