Sha256: 89ac29b553abb347625cef1f3fcd9e97cfa73208ce29c7eb2ac74e0af659f9df

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

require 'spec_helper'

module Google
  module Book
    describe Response do
      use_vcr_cassette 'google'

      let(:response) do
        Request.find('deleuze')
      end

      it "should set total results" do
        response.total_results.should > 0
      end

      it "should return books" do
        books = response.to_books
        books.first.should be_a Struct
      end

      it "should handle single matches" do
        Request.find('9780826490780').to_books.first.should be_a Struct
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google-book-0.2.1 spec/google/book/response_spec.rb