Sha256: 23871a8b15f3882d371b47ac27f914527b0a0ec1bc127a98faeac7e34d4ecc3f

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

describe 'Search' do
  it 'should return results for a title search' do
    results = ARBookFinder.search('harry potter')
    results.books.size.should > 0
  end
  
  it 'should return results for page 2' do
    results = ARBookFinder.search('harry potter', 2)
    results.current_page.should == 2
  end
  
  it 'should fetch book data' do
    results = ARBookFinder.search('harry potter')
    book = results.books[0]
    book.fetch
    book.title.should_not be ''
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ar_book_finder-1.1.0 spec/ar_book_finder/search_spec.rb