Sha256: 78715e2a07ad9e4650a26f5b6a547415bfe0fd0c6d69f9253648b2f54659b5c5
Contents?: true
Size: 420 Bytes
Versions: 6
Compression:
Stored size: 420 Bytes
Contents
# -*- encoding: utf-8 -*- require './spec/helper' describe TagProcessor do it "should abort on unknown tag" do doc = Nokogiri::XML.fragment('<body><genit foo="bar"/></body>') tag = doc.at_css('genit') STDOUT.should_receive(:puts).with("Genit aborted! Unknown tag: <genit foo=\"bar\"/>") lambda do TagProcessor.new('mock', 'mock', 'mock', tag) end.should raise_error(SystemExit) end end
Version data entries
6 entries across 6 versions & 1 rubygems