Sha256: 6e88b96db8095e3ff567ea217c0280593062711ccb23c72f29d0482e1c37ad21
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
require 'spec_helper' describe Fletcher::Nokogiri::HTML::Document do end describe Fletcher::Nokogiri::XML::NodeSet do before :each do @doc = Fletcher::Data.read(Factory(:valid).url) end describe "first_string" do it "should return a valid string" do nodeset = @doc.xpath(Factory(:valid).title_xpath) string = nodeset.first_string string.should_not be_nil end end describe "attribute_array" do it "should return an array of attribute hashes" do nodeset = @doc.xpath(Factory(:valid).images_xpath) attribute_array = nodeset.attribute_array attribute_array.class.should == Array end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fletcher-0.4.2 | spec/lib/fletcher/nokogiri_spec.rb |
fletcher-0.4.1 | spec/lib/fletcher/nokogiri_spec.rb |
fletcher-0.4.0 | spec/lib/fletcher/nokogiri_spec.rb |