spec/fassbinder/response_spec.rb in fassbinder-0.0.5 vs spec/fassbinder/response_spec.rb in fassbinder-0.0.6

- old
+ new

@@ -29,13 +29,15 @@ Response.new(response, :us) end.to raise_error InvalidResponseError end end - describe "#snapshots" do - it "should return snapshots" do - response.snapshots.count.should eql 19 - response.snapshots.first.should be_a Kosher::Snapshot + describe "#to_a" do + it "returns an array of snapshots" do + snapshots = response.to_a + + snapshots.count.should eql 19 + snapshots.first.should be_a Kosher::Snapshot end end describe "#errors" do it "should return ASINs that are not found" do