spec/rake/funnel/extensions/rexml_spec.rb in rake-funnel-0.18.0 vs spec/rake/funnel/extensions/rexml_spec.rb in rake-funnel-0.19.0

- old
+ new

@@ -1,13 +1,16 @@ +# rubocop:disable RSpec/FilePath + describe Rake::Funnel::Extensions::REXML::Functions do - let(:xml) { <<EOF + let(:xml) do + <<EOF <editors xmlns="http://example.com"> <editor id="emacs">EMACS</editor> <editor id="vi">VIM</editor> <editor id="notepad">Notepad</editor> </editors> EOF - } + end subject { REXML::Document.new(xml) } it 'should support lower-case function' do expect(REXML::XPath.match(subject, "//editor[lower-case(text())='vim']").first.to_s).to match(/VIM/)