spec/harpy/resource_spec.rb in harpy-0.1.10 vs spec/harpy/resource_spec.rb in harpy-0.1.11
- old
+ new
@@ -334,9 +334,10 @@
companies.first.id.should == "1"
companies.url.should == url
companies.each do |company|
company.firstname.should == "Anthony"
end.should be_kind_of Harpy::Collection
+ companies.each.should be_kind_of Enumerator
companies.to_a.should == [companies.first]
companies.detect{ true }.should be companies.first
end
it "delegates other response codes to client" do
response = Typhoeus::Response.new :code => 500
\ No newline at end of file