Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rspec adjustments

  • Loading branch information...
commit 6bf4cddb58c4afa11cd13cb0f43166da4a02a3f0 1 parent 2c04c67
@hulihanapplications authored
Showing with 17 additions and 1 deletion.
  1. +1 −1  spec/lib/fletcher/nokogiri_spec.rb
  2. +16 −0 spec/lib/fletcher_spec.rb
View
2  spec/lib/fletcher/nokogiri_spec.rb
@@ -21,7 +21,7 @@
it "should return an array of attribute hashes" do
nodeset = @doc.xpath(Factory(:valid_item).images_xpath)
attribute_array = nodeset.attribute_array
- puts attribute_array.first.inspect
+ attribute_array.class.should == Array
end
end
end
View
16 spec/lib/fletcher_spec.rb
@@ -32,5 +32,21 @@
item.name.should_not be_nil
end
end
+
+ context :thinkgeek do
+ it "should fetch item info successfully" do
+ item = described_class.fetch(Factory(:thinkgeek_item).url)
+ item.should_not be_nil
+ item.name.should_not be_nil
+ end
+ end
+
+ context :etsy do
+ it "should fetch item info successfully" do
+ item = described_class.fetch(Factory(:etsy_item).url)
+ item.should_not be_nil
+ item.name.should_not be_nil
+ end
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.