Sha256: 21a3d5e4be59822c3c9f5e4d03c16b22cb1d0f41ea020a835af34518a1b77ddd
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
require_relative "./test_helper" describe BookscanClient do before do @client = BookscanClient.new end describe "#books" do it "returns book model array" do books = @client.books assert_equal books.size, 2 assert_equal books[0].filename, "filename1" assert_equal books[0].hash, "hash1" assert_equal books[0].digest, "digest1" assert_equal books[0].image_url, nil assert_equal books[1].filename, "filename2" assert_equal books[1].image_url, "http://example.com/hoge.jpg" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookscan_client-0.0.1 | test/bookscan_client_test.rb |