Sha256: 189ab71ee9230cd5b4a17f30f6f50206a44229b75fc99912cd57e97e213329c3

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

require 'spec_helper'

describe Orthotypo::Analyzer do
  it 'find urls' do
    expect(Orthotypo::Analyzer.url?("https://unsplash.com/@lusvardi?utm_source=osuny")).to be true
    expect(Orthotypo::Analyzer.url?("https://hal.science/hal-02455856")).to be true
    expect(Orthotypo::Analyzer.url?("mailto:test@example.com")).to be true
    expect(Orthotypo::Analyzer.url?("mot:")).to be false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
orthotypo-1.0.4 spec/analyzer_spec.rb
orthotypo-1.0.3 spec/analyzer_spec.rb