google-book 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/google/book/response.rb
CHANGED
data/lib/google/book/version.rb
CHANGED
@@ -15,7 +15,11 @@ module Google
|
|
15
15
|
|
16
16
|
it "should return books" do
|
17
17
|
books = response.to_books
|
18
|
-
books.first.should
|
18
|
+
books.first.should be_a Struct
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should handle single matches" do
|
22
|
+
Request.find('9780826490780').to_books.first.should be_a Struct
|
19
23
|
end
|
20
24
|
end
|
21
25
|
end
|