Sha256: ae9f6b16d37390e894acdaa8d4d562622c9a6bebf7403fa7df9352e661484ed8
Contents?: true
Size: 441 Bytes
Versions: 69
Compression:
Stored size: 441 Bytes
Contents
require 'nokogiri' require 'recog/fingerprint' describe Recog::Fingerprint do let(:xml) do path = File.expand_path(File.join('spec', 'data', 'whitespaced_fingerprint.xml')) doc = Nokogiri::XML(IO.read(path)) doc.xpath("//fingerprint").first end subject { Recog::Fingerprint.new(xml) } describe "#name" do it "properly squashes whitespace" do expect(subject.name).to eq('I love whitespace!') end end end
Version data entries
69 entries across 69 versions & 1 rubygems