sandisk/crunchbase-api — pull request #2 by gsdean (2014-11-05 02:23:23+00:00)
Title: Adding support for Organization query/domain/name search methods

I added tests for the new methods. However there were 4 existing tests that were broken from what appears to be data changes in Crunchbase. I did not fix these as it's out of scope for this pull request.

Finished in 0.284785s, 73.7398 runs/s, 512.6675 assertions/s.

1) Failure:
Product::vcr#test_0001_should retrieve product by permalink [/Users/greg/Documents/crunchbase-api/test/crunchbase-api/product_test.rb:8]:
Expected nil (NilClass) to respond to #empty?.

2) Failure:
Person::vcr#test_0001_should retrieve person by permalink [/Users/greg/Documents/crunchbase-api/test/crunchbase-api/person_test.rb:12]:
--- expected
+++ actual
@@ -1 +1 @@
-#
+nil

3) Failure:
IPO::vcr#test_0001_should retrieve IPO by uuid [/Users/greg/Documents/crunchbase-api/test/crunchbase-api/ipo_test.rb:9]:
Expected: "NASDAQ"
Actual: nil

4) Failure:
Organization::vcr#test_0004_should retrieve organization by permalink [/Users/greg/Documents/crunchbase-api/test/crunchbase-api/organization_test.rb:33]:
--- expected
+++ actual
@@ -1 +1 @@
-#
+#

21 runs, 146 assertions, 4 failures, 0 errors, 0 skips