Sha256: 945c452dcad7721a41d816d980b246ff10da6194e0618bb7ed4ba0dc324eb241
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'css_selector' describe "CssSelector" do it "get title" do html = '<html><head><title>foo</title></head><body><h1>bar</h1></body></html>' selector = 'title' CssSelector(html, selector).should == 'foo' end it "get h1" do html = '<html><head><title>foo</title></head><body><h1>bar</h1></body></html>' selector = 'h1' CssSelector(html, selector).should == 'bar' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css_selector-1.0.0 | spec/css_selector_spec.rb |