Permalink
Browse files

correct tests

  • Loading branch information...
1 parent e5f5592 commit f59216e3636232ac24e19eff262f3ae47bdbd809 @siuying committed Feb 15, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 spec/rquery/rquery_spec.rb
@@ -23,8 +23,7 @@
end
it "check if a class is present" do
- logo = RubyQuery::Query.query(HTML_SIMPLE, "a")
- RubyQuery::Query.query(logo.to_s, "img", "attr", "alt").should be_true
+ RubyQuery::Query.query(HTML_SIMPLE, "ul", "has-class", "list").should be_true
end
it "grab width or height attributes" do
@@ -66,6 +65,6 @@
it "should return empty for strange query" do
RubyQuery::Query.query(HTML_LIST, "liaa").should be_empty
- RubyQuery::Query.query(HTML_LIST, "lixaa", "len").should 0
+ RubyQuery::Query.query(HTML_LIST, "lixaa", "len").should == 0
end
end

0 comments on commit f59216e

Please sign in to comment.