spec/rake/funnel/extensions/rexml_spec.rb in rake-funnel-0.3.2.pre vs spec/rake/funnel/extensions/rexml_spec.rb in rake-funnel-0.4.0.pre
- old
+ new
@@ -1,20 +1,20 @@
-describe Rake::Funnel::Extensions::REXML::Functions do
- let(:xml) { <<EOF
- <editors xmlns="http://example.com">
- <editor id="emacs">EMACS</editor>
- <editor id="vi">VIM</editor>
- <editor id="notepad">Notepad</editor>
- </editors>
-EOF
- }
-
- 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/)
- end
-
- it 'should support matches function' do
- expect(REXML::XPath.match(subject, "//editor[matches(@id, '*pad')]").first.to_s).to match(/Notepad/)
- end
-end
+describe Rake::Funnel::Extensions::REXML::Functions do
+ let(:xml) { <<EOF
+ <editors xmlns="http://example.com">
+ <editor id="emacs">EMACS</editor>
+ <editor id="vi">VIM</editor>
+ <editor id="notepad">Notepad</editor>
+ </editors>
+EOF
+ }
+
+ 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/)
+ end
+
+ it 'should support matches function' do
+ expect(REXML::XPath.match(subject, "//editor[matches(@id, '*pad')]").first.to_s).to match(/Notepad/)
+ end
+end