spec/bamboo-client/http/xml_spec.rb in bamboo-client-0.0.2 vs spec/bamboo-client/http/xml_spec.rb in bamboo-client-0.0.3
- old
+ new
@@ -17,10 +17,14 @@
doc.should be_kind_of(Xml::Doc)
end
end
describe Xml::Doc do
- let(:wrapped) { mock("nokogiri document") }
+ let(:wrapped) {
+ m = mock("nokogiri document")
+ m.stub!(:css).with("errors error").and_return []
+ m
+ }
let(:doc) { Xml::Doc.new(wrapped)}
it "returns the text of the given CSS selector" do
wrapped.should_receive(:css).
with("some selector").