Last active
May 3, 2016 06:45
-
-
Save evmorov/7eb538f022efcc35c3325ed980f7664f to your computer and use it in GitHub Desktop.
For the article at medium.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let(:doc) { Nokogiri::XML(xml) } | |
it do | |
id = doc.xpath('//school[name/text()="Second school"]/id').text | |
expect(id).to eq('2') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment